summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-netxbig.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-11-06 09:06:50 (GMT)
committerRusty Russell <rusty@rustcorp.com.au>2010-11-24 04:51:12 (GMT)
commit22e132ff2645aab1e1a25c45e9544a39ae1dc106 (patch)
tree2202ed81de7b2afd7f1ce568fc0222497e464de2 /drivers/leds/leds-netxbig.c
parent7ae4b866f86f9ab7b99484b56dd303a860ad1cc9 (diff)
downloadlinux-22e132ff2645aab1e1a25c45e9544a39ae1dc106.tar.xz
Char: virtio_console, fix memory leak
Stanse found that in init_vqs, memory is leaked under certain circumstanses (the fail path order is incorrect). Fix that by checking allocations in one turn and free all of them at once if some fails (some may be NULL, but this is OK). Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Amit Shah <amit.shah@redhat.com> Cc: virtualization@lists.linux-foundation.org Cc: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/leds/leds-netxbig.c')
0 files changed, 0 insertions, 0 deletions