Skip to content
Commit 7dedd15d authored by Dan Carpenter's avatar Dan Carpenter Committed by Shaohua Li
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 5b5b7fd1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment