lkml.org 
[lkml]   [2013]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/5] BLOCK: rbd, return proper error from rbd_dev_probe_update_spec
Date
Jiri Slaby <jslaby@suse.cz> 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@suse.cz>
> ---
> drivers/block/rbd.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)

Acked-by: Nikola Pajkovsky <npajkovs@redhat.com>

--
Nikola


\
 
 \ /
  Last update: 2013-04-05 01:41    [W:0.072 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site