diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-22 08:08:25 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-22 08:08:25 -0700 |
commit | 75d3bce2fc0a80f435fe12f2c9ed2632c8ac29e4 (patch) | |
tree | b9080999d2fbe38aa1242ac4b838e17ebf1ed656 /fs/cifs/inode.c | |
parent | a0abb93bf9dc590b031a1123f3e6c6c225c1cdd1 (diff) | |
parent | 0a891adccc867c28b022128bc342a779e476c816 (diff) | |
download | kernel_samsung_smdk4412-75d3bce2fc0a80f435fe12f2c9ed2632c8ac29e4.zip kernel_samsung_smdk4412-75d3bce2fc0a80f435fe12f2c9ed2632c8ac29e4.tar.gz kernel_samsung_smdk4412-75d3bce2fc0a80f435fe12f2c9ed2632c8ac29e4.tar.bz2 |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
[CIFS] Fix reversed memset arguments
Adds username in the upcall key for unattended mounts with keytab
[CIFS] Remove redundant NULL check
Diffstat (limited to 'fs/cifs/inode.c')
-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 00ced97..129dbfe 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, { 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); |