Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed5f0370 authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Steve French
Browse files

[CIFS] CIFSSMBPosixLock should return -EINVAL on error



all other codepaths in this function return negative values on errors

Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 6353450a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1767,7 +1767,7 @@ CIFSSMBPosixLock(const int xid, struct cifsTconInfo *tcon,
	cFYI(1, ("Posix Lock"));

	if (pLockData == NULL)
		return EINVAL;
		return -EINVAL;

	rc = small_smb_init(SMB_COM_TRANSACTION2, 15, tcon, (void **) &pSMB);