diff options
| author | Dave Jones <davej@redhat.com> | 2008-05-22 10:20:21 -0400 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2008-05-22 10:20:21 -0400 |
| commit | 0a891adccc867c28b022128bc342a779e476c816 (patch) | |
| tree | adfed2b6389835cc213274278d0a13f69399d3aa | |
| parent | e4058245ac0c4d9a517cda688a35aef065cb7f4e (diff) | |
[CIFS] Fix reversed memset arguments
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
| -rw-r--r-- | fs/cifs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 00ced97bd53a..129dbfe4dca7 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
| @@ -172,7 +172,7 @@ static void fill_fake_finddataunix(FILE_UNIX_BASIC_INFO *pfnd_dat, | |||
| 172 | { | 172 | { |
| 173 | struct inode *pinode = NULL; | 173 | struct inode *pinode = NULL; |
| 174 | 174 | ||
| 175 | memset(pfnd_dat, sizeof(FILE_UNIX_BASIC_INFO), 0); | 175 | memset(pfnd_dat, 0, sizeof(FILE_UNIX_BASIC_INFO)); |
| 176 | 176 | ||
| 177 | /* __le64 pfnd_dat->EndOfFile = cpu_to_le64(0); | 177 | /* __le64 pfnd_dat->EndOfFile = cpu_to_le64(0); |
| 178 | __le64 pfnd_dat->NumOfBytes = cpu_to_le64(0); | 178 | __le64 pfnd_dat->NumOfBytes = cpu_to_le64(0); |
| @@ -384,7 +384,7 @@ static int get_sfu_mode(struct inode *inode, | |||
| 384 | static void fill_fake_finddata(FILE_ALL_INFO *pfnd_dat, | 384 | static void fill_fake_finddata(FILE_ALL_INFO *pfnd_dat, |
| 385 | struct super_block *sb) | 385 | struct super_block *sb) |
| 386 | { | 386 | { |
| 387 | memset(pfnd_dat, sizeof(FILE_ALL_INFO), 0); | 387 | memset(pfnd_dat, 0, sizeof(FILE_ALL_INFO)); |
| 388 | 388 | ||
| 389 | /* __le64 pfnd_dat->AllocationSize = cpu_to_le64(0); | 389 | /* __le64 pfnd_dat->AllocationSize = cpu_to_le64(0); |
| 390 | __le64 pfnd_dat->EndOfFile = cpu_to_le64(0); | 390 | __le64 pfnd_dat->EndOfFile = cpu_to_le64(0); |
