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

2016-04-13 Thread Dan Carpenter
On Wed, Apr 13, 2016 at 10:02:40AM -0700, Shaohua Li wrote: > 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

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

2016-04-13 Thread Shaohua Li
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 o

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

2016-04-12 Thread Dan Carpenter
My static checker complains that if create_strip_zones() fails then we use "priv_conf" without initializing it. Fix this by checking for failure. Signed-off-by: Dan Carpenter diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index 2ea12c6..1d80e3c 100644 --- a/drivers/md/raid0.c +++ b/driver