Re: [PATCH] mac802154: llsec: fix return value check in llsec_key_alloc()

2015-04-18 Thread Alexander Aring
On Thu, Apr 16, 2015 at 08:16:34PM +0800, weiyj...@163.com wrote: > From: Wei Yongjun > > 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().

[PATCH] mac802154: llsec: fix return value check in llsec_key_alloc()

2015-04-16 Thread weiyj_lk
From: Wei Yongjun 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 --- net/mac802154/llsec.c | 4 ++-- 1 file changed,