From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaohua Li Subject: Re: [patch v2] md/raid0: fix uninitialized variable bug Date: Thu, 14 Apr 2016 09:57:00 -0700 Message-ID: <20160414165700.GA2006@kernel.org> References: <20160413170240.GB6186@kernel.org> <20160414093149.GA16549@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20160414093149.GA16549@mwanda> Sender: linux-kernel-owner@vger.kernel.org To: Dan Carpenter Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org List-Id: linux-raid.ids On Thu, Apr 14, 2016 at 12:31:49PM +0300, Dan Carpenter wrote: > If this function fails the callers expect that *private_conf is set to > an ERR_PTR() but that isn't true for the first error path where we can't > allocate "conf". It leads to some uninitialized variable bugs. > > Signed-off-by: Dan Carpenter Applied, thanks!