Skip to content

Commit

Permalink
[CIFS] Fix reversed memset arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Dave Jones authored and Steve French committed May 22, 2008
1 parent e405824 commit 0a891ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/cifs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0a891ad

Please sign in to comment.