cifs: Fix potential OOB access of lock element array

commit b9a74cde94 upstream.

If maxBuf is small but non-zero, it could result in a zero sized lock
element array which we would then try and access OOB.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Ross Lagerwall 2019-01-08 18:30:57 +00:00 • committed by Ben Hutchings
commit 570287c261
2 changed files with 6 additions and 6 deletions