[CIFS] Fix reversed memset arguments
authorDave Jones <davej@redhat.com>
Thu, 22 May 2008 14:20:21 +0000 (14:20 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 22 May 2008 14:20:21 +0000 (14:20 +0000)
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c

index 00ced97bd53a74d1202eab7a32865bcd295139be..129dbfe4dca7c0de657f6bd39d26a89ae651df30 100644 (file)
@@ -172,7 +172,7 @@ static void fill_fake_finddataunix(FILE_UNIX_BASIC_INFO *pfnd_dat,
 {
        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 *inode,
 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);