Skip to content
Snippets Groups Projects
Commit 55db5a3c authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini
Browse files

misc.c: trivial, return explicit NULL on failure


Signed-off-by: default avatarFederico Vaga <federico.vaga@gmail.com>
Acked-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent 9c35166d
No related merge requests found
...@@ -79,7 +79,7 @@ struct zio_ffa *zio_ffa_create(unsigned long begin, unsigned long end) ...@@ -79,7 +79,7 @@ struct zio_ffa *zio_ffa_create(unsigned long begin, unsigned long end)
if (!ffa || !c) { if (!ffa || !c) {
kfree(ffa); kfree(ffa);
kfree(c); kfree(c);
return ffa; return NULL;
} }
spin_lock_init(&ffa->lock); spin_lock_init(&ffa->lock);
INIT_LIST_HEAD(&c->list); INIT_LIST_HEAD(&c->list);
......
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