cifs: fix erroneous return value
authorAnton Protopopov <a.s.protopopov@gmail.com>
Wed, 10 Feb 2016 17:50:21 +0000 (12:50 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 11 Feb 2016 00:23:31 +0000 (18:23 -0600)
commit4b550af519854421dfec9f7732cdddeb057134b2
tree1825ff56dc8ce3ff6e93f09675bcfe4a947bf24b
parentf34d69c3e54908c97708d0d65075f7c6074fc87e
cifs: fix erroneous return value

The setup_ntlmv2_rsp() function may return positive value ENOMEM instead
of -ENOMEM in case of kmalloc failure.

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsencrypt.c