Skip to content

Commit 0a891ad

Browse files
Dave JonesSteve French
authored andcommitted
[CIFS] Fix reversed memset arguments
Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
1 parent e405824 commit 0a891ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/cifs/inode.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static void fill_fake_finddataunix(FILE_UNIX_BASIC_INFO *pfnd_dat,
172172
{
173173
struct inode *pinode = NULL;
174174

175-
memset(pfnd_dat, sizeof(FILE_UNIX_BASIC_INFO), 0);
175+
memset(pfnd_dat, 0, sizeof(FILE_UNIX_BASIC_INFO));
176176

177177
/* __le64 pfnd_dat->EndOfFile = cpu_to_le64(0);
178178
__le64 pfnd_dat->NumOfBytes = cpu_to_le64(0);
@@ -384,7 +384,7 @@ static int get_sfu_mode(struct inode *inode,
384384
static void fill_fake_finddata(FILE_ALL_INFO *pfnd_dat,
385385
struct super_block *sb)
386386
{
387-
memset(pfnd_dat, sizeof(FILE_ALL_INFO), 0);
387+
memset(pfnd_dat, 0, sizeof(FILE_ALL_INFO));
388388

389389
/* __le64 pfnd_dat->AllocationSize = cpu_to_le64(0);
390390
__le64 pfnd_dat->EndOfFile = cpu_to_le64(0);

0 commit comments

Comments
 (0)