X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flinux.git;a=blobdiff_plain;f=fs%2Fcifs%2Fcifsencrypt.c;h=4897dacf89449c684a076bbd35e40b4c839747e9;hp=d41165433260673d66fef4cc074695665330124b;hb=70477371dc350746d10431d74f0f213a8d59924c;hpb=34074205bb9f04b416efb3cbedcd90f418c86200 diff --git a/fs/cifs/cifsencrypt.c b/fs/cifs/cifsencrypt.c index d41165433260..4897dacf8944 100644 --- a/fs/cifs/cifsencrypt.c +++ b/fs/cifs/cifsencrypt.c @@ -715,7 +715,7 @@ setup_ntlmv2_rsp(struct cifs_ses *ses, const struct nls_table *nls_cp) ses->auth_key.response = kmalloc(baselen + tilen, GFP_KERNEL); if (!ses->auth_key.response) { - rc = ENOMEM; + rc = -ENOMEM; ses->auth_key.len = 0; goto setup_ntlmv2_rsp_ret; }