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: 32811d24 ("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>
Showing
Please register or sign in to comment