projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31c2659
)
cifs: No need to check crypto blockcipher allocation
author
Shirish Pargaonkar
<
[email protected]
>
Sat, 29 Jan 2011 19:54:58 +0000
(13:54 -0600)
committer
Steve French
<
[email protected]
>
Mon, 31 Jan 2011 17:29:18 +0000
(17:29 +0000)
Missed one change as per earlier suggestion.
Signed-off-by: Shirish Pargaonkar <
[email protected]
>
Reviewed-by: Jeff Layton <
[email protected]
>
Signed-off-by: Steve French <
[email protected]
>
fs/cifs/cifsencrypt.c
patch
|
blob
|
history
diff --git
a/fs/cifs/cifsencrypt.c
b/fs/cifs/cifsencrypt.c
index 0db5f1de022780f93fdd91e689fc3eb1ee820052..a51585f9852b4627735e318e83478cbf512c9fbc 100644
(file)
--- a/
fs/cifs/cifsencrypt.c
+++ b/
fs/cifs/cifsencrypt.c
@@
-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;