diff options
| author | Shirish Pargaonkar <shirishpargaonkar@gmail.com> | 2011-01-29 14:54:58 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2011-01-31 12:29:18 -0500 |
| commit | 7a8587e7c8e4e32ba778bfbbb822a0a7e8d5f3e3 (patch) | |
| tree | b76abee21fd80b5556d95494f94813589c4e7eef | |
| parent | 31c2659d78c8be970833bc1e633593d291553ed3 (diff) | |
cifs: No need to check crypto blockcipher allocation
Missed one change as per earlier suggestion.
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
| -rw-r--r-- | fs/cifs/cifsencrypt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/cifsencrypt.c b/fs/cifs/cifsencrypt.c index 0db5f1de022..a51585f9852 100644 --- a/fs/cifs/cifsencrypt.c +++ b/fs/cifs/cifsencrypt.c | |||
| @@ -657,9 +657,10 @@ calc_seckey(struct cifsSesInfo *ses) | |||
| 657 | get_random_bytes(sec_key, CIFS_SESS_KEY_SIZE); | 657 | get_random_bytes(sec_key, CIFS_SESS_KEY_SIZE); |
| 658 | 658 | ||
| 659 | tfm_arc4 = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC); | 659 | tfm_arc4 = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC); |
| 660 | if (!tfm_arc4 || IS_ERR(tfm_arc4)) { | 660 | if (IS_ERR(tfm_arc4)) { |
| 661 | rc = PTR_ERR(tfm_arc4); | ||
| 661 | cERROR(1, "could not allocate crypto API arc4\n"); | 662 | cERROR(1, "could not allocate crypto API arc4\n"); |
| 662 | return PTR_ERR(tfm_arc4); | 663 | return rc; |
| 663 | } | 664 | } |
| 664 | 665 | ||
| 665 | desc.tfm = tfm_arc4; | 666 | desc.tfm = tfm_arc4; |
