Thread (5 messages) 5 messages, 2 authors, 2016-04-14

Re: [patch] md/raid0: check for create_strip_zones() errors

From: Shaohua Li <shli@kernel.org>
Date: 2016-04-13 17:02:45
Also in: kernel-janitors, lkml

On Wed, Apr 13, 2016 at 09:46:45AM +0300, Dan Carpenter wrote:
My static checker complains that if create_strip_zones() fails then we
use "priv_conf" without initializing it.  Fix this by checking for
failure.
It's more convenient setting '*private_conf = ERR_PTR(-ENOMEM);' at the
begining of create_strip_zones() when it returns -ENOMEM. create_strip_zones
already sets private_conf correctly in other cases.

Thanks,
Shaohua
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help