Commit 1147e4a7 authored by Steve French's avatar Steve French

Fix oops when smb buffer can not be allocated

parent c1ca0f91
Version 1.14 Version 1.14
------------ ------------
Fix incomplete listings of large directories on Samba servers when Unix Fix incomplete listings of large directories on Samba servers when Unix
extensions enabled. extensions enabled. Fix oops when smb_buffer can not be allocated
Version 1.13 Version 1.13
------------ ------------
......
...@@ -143,7 +143,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon, ...@@ -143,7 +143,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
return rc; return rc;
*request_buf = cifs_buf_get(); *request_buf = cifs_buf_get();
if (request_buf == 0) { if (*request_buf == 0) {
return -ENOMEM; return -ENOMEM;
} }
/* Although the original thought was we needed the response buf for */ /* Although the original thought was we needed the response buf for */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment