Re: [PATCH 1/5] BLOCK: rbd, return proper error from rbd_dev_probe_update_spec

From: Nikola Pajkovsky
Date: Thu Apr 04 2013 - 18:54:35 EST


Jiri Slaby <jslaby@xxxxxxx> writes:

> ret might be uninitialized and is returned that way when kstrdup of
> rbd_dev->spec->snap_name fails. Fix it by returning ENOMEM from that
> place.
>
> Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
> ---
> drivers/block/rbd.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)

Acked-by: Nikola Pajkovsky <npajkovs@xxxxxxxxxx>

--
Nikola
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/