]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb0e2c6f0b9c9c589b3aafce3fbff82172f24184
tree18d258bfbee4dfb7f2240eecf186843acf613535
parent8e7e2e215043fb524301b69a316a057aa6cf38f7
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