summaryrefslogtreecommitdiff
path: root/net/mac802154/main.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2015-04-30 18:44:54 +0300
committerMarcel Holtmann <marcel@holtmann.org>2015-04-30 19:46:28 +0300
commit89eb6d0677a6daf134015bc7bd5ec1432911eed2 (patch)
treef59ee0846a8ea01de87d0edc9ec7faecbf9fd3ee /net/mac802154/main.c
parent2b4d413c3871af0f2ccd466fb6581ed2c2d89438 (diff)
downloadlinux-89eb6d0677a6daf134015bc7bd5ec1432911eed2.tar.xz
mac802154: llsec: fix return value check in llsec_key_alloc()
In case of error, the functions crypto_alloc_aead() and crypto_alloc_blkcipher() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/main.c')
0 files changed, 0 insertions, 0 deletions