Re: [patch v2] md/raid0: fix uninitialized variable bug

From: Shaohua Li
Date: Thu Apr 14 2016 - 12:57:08 EST


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 <dan.carpenter@xxxxxxxxxx>

Applied, thanks!