mac802154: llsec: fix return value check in llsec_key_alloc()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 30 Apr 2015 15:44:54 +0000 (17:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 30 Apr 2015 16:46:28 +0000 (18:46 +0200)
commit89eb6d0677a6daf134015bc7bd5ec1432911eed2
treef59ee0846a8ea01de87d0edc9ec7faecbf9fd3ee
parent2b4d413c3871af0f2ccd466fb6581ed2c2d89438
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>
net/mac802154/llsec.c