commit | 89eb6d0677a6daf134015bc7bd5ec1432911eed2 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Thu Apr 30 17:44:54 2015 +0200 |
committer | Marcel Holtmann <marcel@holtmann.org> | Thu Apr 30 18:46:28 2015 +0200 |
tree | f59ee0846a8ea01de87d0edc9ec7faecbf9fd3ee | |
parent | 2b4d413c3871af0f2ccd466fb6581ed2c2d89438 [diff] |
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>