|
@@ -2256,7 +2256,7 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path,
|
|
|
struct TCP_Server_Info *server;
|
|
|
struct cifs_tcon *tcon = oparms->tcon;
|
|
|
struct cifs_ses *ses = tcon->ses;
|
|
|
- struct kvec iov[5]; /* make sure at least one for each open context */
|
|
|
+ struct kvec iov[SMB2_CREATE_IOV_SIZE];
|
|
|
struct kvec rsp_iov = {NULL, 0};
|
|
|
int resp_buftype;
|
|
|
int rc = 0;
|
|
@@ -2274,7 +2274,7 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path,
|
|
|
memset(&rqst, 0, sizeof(struct smb_rqst));
|
|
|
memset(&iov, 0, sizeof(iov));
|
|
|
rqst.rq_iov = iov;
|
|
|
- rqst.rq_nvec = 5;
|
|
|
+ rqst.rq_nvec = SMB2_CREATE_IOV_SIZE;
|
|
|
|
|
|
rc = SMB2_open_init(tcon, &rqst, oplock, oparms, path);
|
|
|
if (rc)
|