diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2006-01-08 04:04:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:14:04 -0500 |
commit | ac34dd052400b1e63aa8e711a13c0670943296fd (patch) | |
tree | 690f1c13638420df3dbad24bd9916b5b29b32c32 | |
parent | a12dea7af93ae83bd868c0dc09367090ead7cc1e (diff) |
[PATCH] fs/smbfs/proc.c: fix data corruption in smb_proc_setattr_unix()
This patch fixes a data corruption in smb_proc_setattr_unix()
(smb_filetype_from_mode() returns an u32, and there are only four bytes
reserved for it in data.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | fs/smbfs/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smbfs/proc.c b/fs/smbfs/proc.c index 38ab558835c4..d6baec0f24ad 100644 --- a/fs/smbfs/proc.c +++ b/fs/smbfs/proc.c | |||
@@ -3113,7 +3113,7 @@ smb_proc_setattr_unix(struct dentry *d, struct iattr *attr, | |||
3113 | LSET(data, 32, SMB_TIME_NO_CHANGE); | 3113 | LSET(data, 32, SMB_TIME_NO_CHANGE); |
3114 | LSET(data, 40, SMB_UID_NO_CHANGE); | 3114 | LSET(data, 40, SMB_UID_NO_CHANGE); |
3115 | LSET(data, 48, SMB_GID_NO_CHANGE); | 3115 | LSET(data, 48, SMB_GID_NO_CHANGE); |
3116 | LSET(data, 56, smb_filetype_from_mode(attr->ia_mode)); | 3116 | DSET(data, 56, smb_filetype_from_mode(attr->ia_mode)); |
3117 | LSET(data, 60, major); | 3117 | LSET(data, 60, major); |
3118 | LSET(data, 68, minor); | 3118 | LSET(data, 68, minor); |
3119 | LSET(data, 76, 0); | 3119 | LSET(data, 76, 0); |