diff options
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index abc9c2809b51..5a49861633a6 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c | |||
@@ -977,7 +977,8 @@ add_durable_context(struct kvec *iov, unsigned int *num_iovec, | |||
977 | 977 | ||
978 | int | 978 | int |
979 | SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, | 979 | SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, |
980 | __u8 *oplock, struct smb2_file_all_info *buf) | 980 | __u8 *oplock, struct smb2_file_all_info *buf, |
981 | struct smb2_err_rsp **err_buf) | ||
981 | { | 982 | { |
982 | struct smb2_create_req *req; | 983 | struct smb2_create_req *req; |
983 | struct smb2_create_rsp *rsp; | 984 | struct smb2_create_rsp *rsp; |
@@ -1082,6 +1083,9 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, | |||
1082 | 1083 | ||
1083 | if (rc != 0) { | 1084 | if (rc != 0) { |
1084 | cifs_stats_fail_inc(tcon, SMB2_CREATE_HE); | 1085 | cifs_stats_fail_inc(tcon, SMB2_CREATE_HE); |
1086 | if (err_buf) | ||
1087 | *err_buf = kmemdup(rsp, get_rfc1002_length(rsp) + 4, | ||
1088 | GFP_KERNEL); | ||
1085 | goto creat_exit; | 1089 | goto creat_exit; |
1086 | } | 1090 | } |
1087 | 1091 | ||