cifs: check hash calculating succeeded
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Wed, 8 Jun 2016 16:02:32 +0000 (17:02 +0100)
committerSteve French <smfrench@gmail.com>
Fri, 24 Jun 2016 04:45:17 +0000 (23:45 -0500)
commit144ff818a5a9728c2336c5560d4b4d72b0c367be
tree6881983b05ca1f23ba81788d7d4c829eaebbf839
parent3f2ac36c8ee758c5bc25dfe6dd337d946ef98e58
cifs: check hash calculating succeeded

calc_lanman_hash() could return -ENOMEM or other errors, we should check
that everything went fine before using the calculated key.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/sess.c