diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-03-23 14:28:03 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2012-03-23 14:28:03 -0400 |
commit | 5ffef7bf1dd582e93b15f8cc735328a556a1d2c4 (patch) | |
tree | 0ef4517dfd3b1e9ded2afda62987d1c784f54769 /fs/cifs/netmisc.c | |
parent | d4e4854fd1c85ac8ba4d6de39703e07704754b85 (diff) | |
download | linux-3.10-5ffef7bf1dd582e93b15f8cc735328a556a1d2c4.tar.gz linux-3.10-5ffef7bf1dd582e93b15f8cc735328a556a1d2c4.tar.bz2 linux-3.10-5ffef7bf1dd582e93b15f8cc735328a556a1d2c4.zip |
CIFS: Separate protocol-specific code from cifs_readv_receive code
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r-- | fs/cifs/netmisc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 73e47e84b61..dd23a321bdd 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c @@ -836,8 +836,9 @@ ntstatus_to_dos(__u32 ntstatus, __u8 *eclass, __u16 *ecode) } int -map_smb_to_linux_error(struct smb_hdr *smb, bool logErr) +map_smb_to_linux_error(char *buf, bool logErr) { + struct smb_hdr *smb = (struct smb_hdr *)buf; unsigned int i; int rc = -EIO; /* if transport error smb error may not be set */ __u8 smberrclass; |