From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Philipp Reisner To: Dan Carpenter Date: Thu, 1 Apr 2010 10:56:39 +0200 Message-Id: <9736574BB1380E.7050404@linbit.com> In-Reply-To: <20100327145950.GG5069@bicker> References: <20100327145950.GG5069@bicker> Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Reisner , Jens Axboe , Lars Ellenberg , drbd-dev@lists.linbit.com Subject: Re: [Drbd-dev] [patch] drbd: potential null dereference List-Id: Coordination of development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Dan, Thanks for the work with the static analyzer, but the patch is bogus. The lc_element_by_index() function causes a BUG_ON before returning a NULL. The next mail contains a patch that removes the unnecessary conditional expression operator. Philipp Reisner (1): drbd: lc_element_by_index() never returns NULL drivers/block/drbd/drbd_actlog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)