summaryrefslogtreecommitdiffstats
path: root/fs/cifs/netlink.h
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2022-09-16 20:57:05 -0300
committerSteve French <stfrench@microsoft.com>2022-09-25 17:01:50 -0500
commit09a1f9a168ae1f69f701689429871793174417d2 (patch)
tree28bed485e4085f75631588ecd27bc8429fb8f9a4 /fs/cifs/netlink.h
parentd7752a6c60c2de889425e27912e3fa96ba5626b2 (diff)
downloadlinux-09a1f9a168ae1f69f701689429871793174417d2.tar.bz2
cifs: return correct error in ->calc_signature()
If an error happens while getting the key or session in the ->calc_signature implementations, 0 (success) is returned. Fix it by returning a proper error code. Since it seems to be highly unlikely to happen wrap the rc check in unlikely() too. Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Fixes: 32811d242ff6 ("cifs: Start using per session key for smb2/3 for signature generation") Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/netlink.h')
0 files changed, 0 insertions, 0 deletions