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)
commita6b6befbb2806697461962edb044e3376a771ebb
tree6881983b05ca1f23ba81788d7d4c829eaebbf839
parentb8da344b74c822e966c6d19d6b2321efe82c5d97
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