]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: check kmalloc before use
authorNicholas Mc Guire <hofrat@osadl.org>
Thu, 23 Aug 2018 10:24:02 +0000 (12:24 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 23 Aug 2018 20:10:49 +0000 (15:10 -0500)
commit8a801f08a9828d2d3f2ebf18b71a56846bc2567a
tree98db93cba5fa52c99aeb86f1fcbb2111e9346093
parent6aad1e339a3ca54fc597b507c33006be8c48299d
cifs: check kmalloc before use

The kmalloc was not being checked - if it fails issue a warning
and return -ENOMEM to the caller.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: 3f2ac36c8ee7 ("cifs: dynamic allocation of ntlmssp blob")
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
cc: Stable <stable@vger.kernel.org>`
fs/cifs/sess.c