Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232713
b: refs/heads/master
c: 7a8587e
h: refs/heads/master
i:
  232711: 3204a3a
v: v3
  • Loading branch information
Shirish Pargaonkar authored and Steve French committed Jan 31, 2011
1 parent d53c821 commit b01cc9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31c2659d78c8be970833bc1e633593d291553ed3
refs/heads/master: 7a8587e7c8e4e32ba778bfbbb822a0a7e8d5f3e3
5 changes: 3 additions & 2 deletions trunk/fs/cifs/cifsencrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,10 @@ calc_seckey(struct cifsSesInfo *ses)
get_random_bytes(sec_key, CIFS_SESS_KEY_SIZE);

tfm_arc4 = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC);
if (!tfm_arc4 || IS_ERR(tfm_arc4)) {
if (IS_ERR(tfm_arc4)) {
rc = PTR_ERR(tfm_arc4);
cERROR(1, "could not allocate crypto API arc4\n");
return PTR_ERR(tfm_arc4);
return rc;
}

desc.tfm = tfm_arc4;
Expand Down

0 comments on commit b01cc9b

Please sign in to comment.