diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-03-23 22:28:03 +0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2012-03-23 22:28:03 +0400 |
commit | 5ffef7bf1dd582e93b15f8cc735328a556a1d2c4 (patch) | |
tree | 0ef4517dfd3b1e9ded2afda62987d1c784f54769 /fs/cifs/netmisc.c | |
parent | d4e4854fd1c85ac8ba4d6de39703e07704754b85 (diff) | |
download | linux-5ffef7bf1dd582e93b15f8cc735328a556a1d2c4.tar.xz |
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 73e47e84b61a..dd23a321bdda 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; |