2004-04-16 21:13:54

by Dave Jones

[permalink] [raw]
Subject: CIFS thinko ?

This code looks odd. Maybe this is needed ?

Dave

--- linux-2.6.5/fs/cifs/cifssmb.c~ 2004-04-16 22:10:46.000000000 +0100
+++ linux-2.6.5/fs/cifs/cifssmb.c 2004-04-16 22:11:20.000000000 +0100
@@ -69,7 +69,7 @@
return rc;

*request_buf = buf_get();
- if (request_buf == 0) {
+ if (*request_buf == 0) {
return -ENOMEM;
}
/* Although the original thought was we needed the response buf for */