From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f174.google.com ([209.85.212.174]:36560 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752187AbbDRNCs (ORCPT ); Sat, 18 Apr 2015 09:02:48 -0400 Date: Sat, 18 Apr 2015 15:02:39 +0200 From: Alexander Aring Subject: Re: [PATCH] mac802154: llsec: fix return value check in llsec_key_alloc() Message-ID: <20150418130235.GA1297@omega> References: <1429186594-20372-1-git-send-email-weiyj_lk@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1429186594-20372-1-git-send-email-weiyj_lk@163.com> Sender: linux-wpan-owner@vger.kernel.org List-ID: To: weiyj_lk@163.com Cc: Marcel Holtmann , "David S. Miller" , Wei Yongjun , linux-wpan@vger.kernel.org, netdev@vger.kernel.org On Thu, Apr 16, 2015 at 08:16:34PM +0800, weiyj_lk@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(). > > Signed-off-by: Wei Yongjun Acked-by: Alexander Aring Marcel, can you please queue this patch? Thanks. - Alex