diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-08-08 23:27:58 +0200 |
---|---|---|
committer | Bryan Wu <bryan.wu@canonical.com> | 2012-08-13 08:34:02 +0200 |
commit | 4a5a4184628c529774c1492bc1a21743b69b5fc3 (patch) | |
tree | f67f310dc21130660a78cb1c160aa184477e87f4 /kernel/rcutree.h | |
parent | Revert "leds: use led_set_brightness in led_trigger_event" (diff) | |
download | linux-4a5a4184628c529774c1492bc1a21743b69b5fc3.tar.xz linux-4a5a4184628c529774c1492bc1a21743b69b5fc3.zip |
leds: renesas: fix error handling
bfe4c041 "leds: convert Renesas TPU LED driver to devm_kzalloc() and
cleanup error exit path" introduced a possible case in which r_tpu_probe
calls iounmap on a wild pointer. This changes the one case that was
missed in the same way as the other error paths.
Without this patch, building kota2_defconfig results in:
drivers/leds/leds-renesas-tpu.c: In function 'r_tpu_probe':
drivers/leds/leds-renesas-tpu.c:246:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized]
drivers/leds/leds-renesas-tpu.c:308:17: warning: 'p' may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Magnus Damm <damm@opensource.se>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'kernel/rcutree.h')
0 files changed, 0 insertions, 0 deletions