summaryrefslogtreecommitdiff
path: root/crypto/authencesn.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-04 11:07:08 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-04 11:07:08 -0300
commitb76428def6664aa4a54c69934628a36fe89baaf4 (patch)
tree51a6d97b1ef57be7cb16c797497a610b9e1e1a5d /crypto/authencesn.c
parent1c11ed58397f048d8187222927092b397a149d70 (diff)
parenta390f39a9ef577563398884870a50eba558dfe49 (diff)
downloadlinux-crypto-b76428def6664aa4a54c69934628a36fe89baaf4.tar.gz
linux-crypto-b76428def6664aa4a54c69934628a36fe89baaf4.zip
Merge tag 'v3.9-rc1' into staging/for_v3.9
Linux 3.9-rc1 * tag 'v3.9-rc1': (10698 commits) Linux 3.9-rc1 btrfs/raid56: Add missing #include <linux/vmalloc.h> fix compat_sys_rt_sigprocmask() SUNRPC: One line comment fix ext4: enable quotas before orphan cleanup ext4: don't allow quota mount options when quota feature enabled ext4: fix a warning from sparse check for ext4_dir_llseek ext4: convert number of blocks to clusters properly ext4: fix possible memory leak in ext4_remount() jbd2: fix ERR_PTR dereference in jbd2__journal_start metag: Provide dma_get_sgtable() metag: prom.h: remove declaration of metag_dt_memblock_reserve() metag: copy devicetree to non-init memory metag: cleanup metag_ksyms.c includes metag: move mm/init.c exports out of metag_ksyms.c metag: move usercopy.c exports out of metag_ksyms.c metag: move setup.c exports out of metag_ksyms.c metag: move kick.c exports out of metag_ksyms.c metag: move traps.c exports out of metag_ksyms.c metag: move irq enable out of irqflags.h on SMP ...
Diffstat (limited to 'crypto/authencesn.c')
-rw-r--r--crypto/authencesn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/authencesn.c b/crypto/authencesn.c
index 136b68b9..ab53762f 100644
--- a/crypto/authencesn.c
+++ b/crypto/authencesn.c
@@ -715,9 +715,8 @@ static struct crypto_instance *crypto_authenc_esn_alloc(struct rtattr **tb)
int err;
algt = crypto_get_attr_type(tb);
- err = PTR_ERR(algt);
if (IS_ERR(algt))
- return ERR_PTR(err);
+ return ERR_CAST(algt);
if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
return ERR_PTR(-EINVAL);