|
@@ -340,7 +340,10 @@ smb2_plain_req_init(__le16 smb2_command, struct cifs_tcon *tcon,
|
|
return rc;
|
|
return rc;
|
|
|
|
|
|
/* BB eventually switch this to SMB2 specific small buf size */
|
|
/* BB eventually switch this to SMB2 specific small buf size */
|
|
- *request_buf = cifs_small_buf_get();
|
|
|
|
|
|
+ if (smb2_command == SMB2_SET_INFO)
|
|
|
|
+ *request_buf = cifs_buf_get();
|
|
|
|
+ else
|
|
|
|
+ *request_buf = cifs_small_buf_get();
|
|
if (*request_buf == NULL) {
|
|
if (*request_buf == NULL) {
|
|
/* BB should we add a retry in here if not a writepage? */
|
|
/* BB should we add a retry in here if not a writepage? */
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
@@ -3720,7 +3723,7 @@ send_set_info(const unsigned int xid, struct cifs_tcon *tcon,
|
|
|
|
|
|
rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags,
|
|
rc = cifs_send_recv(xid, ses, &rqst, &resp_buftype, flags,
|
|
&rsp_iov);
|
|
&rsp_iov);
|
|
- cifs_small_buf_release(req);
|
|
|
|
|
|
+ cifs_buf_release(req);
|
|
rsp = (struct smb2_set_info_rsp *)rsp_iov.iov_base;
|
|
rsp = (struct smb2_set_info_rsp *)rsp_iov.iov_base;
|
|
|
|
|
|
if (rc != 0) {
|
|
if (rc != 0) {
|