Skip to contentSkip to conversation

Fix reversed memset arguments.

CIFS Dave Jones 1 participant 1 message May 22, 2008

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

size is the 3rd argument.

fs/cifs/inode.c renamed from fs/cifs/inode.c~ +2 -2
@@ -172,7 +172,7 @@ static void fill_fake_finddataunix(FILE_
 {
 	struct inode *pinode = NULL;
 
-	memset(pfnd_dat, sizeof(FILE_UNIX_BASIC_INFO), 0);
+	memset(pfnd_dat, 0, sizeof(FILE_UNIX_BASIC_INFO));
 
 /*	__le64 pfnd_dat->EndOfFile = cpu_to_le64(0);
 	__le64 pfnd_dat->NumOfBytes = cpu_to_le64(0);
@@ -384,7 +384,7 @@ static int get_sfu_mode(struct inode *in
 static void fill_fake_finddata(FILE_ALL_INFO *pfnd_dat,
 			       struct super_block *sb)
 {
-	memset(pfnd_dat, sizeof(FILE_ALL_INFO), 0);
+	memset(pfnd_dat, 0, sizeof(FILE_ALL_INFO));
 
 /*	__le64 pfnd_dat->AllocationSize = cpu_to_le64(0);
 	__le64 pfnd_dat->EndOfFile = cpu_to_le64(0);
Signature · 1 line
http://www.codemonkey.org.uk