md/raid0: fix uninitialized variable bug
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Apr 2016 09:31:49 +0000 (12:31 +0300)
committerShaohua Li <shli@fb.com>
Thu, 14 Apr 2016 16:57:59 +0000 (09:57 -0700)
commit7dedd15dd2527055390b9742c87a02556d3180f4
tree18d258bfbee4dfb7f2240eecf186843acf613535
parent5b5b7fd185e997ebc18f76b98b9f4ff148d3f5bb
md/raid0: fix uninitialized variable bug

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@oracle.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid0.c