mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[CIFS] Fix reversed memset arguments
Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
e4058245ac
commit
0a891adccc
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue