LEDS: memory leak in blinkm_led_common_set()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2012 07:59:51 +0000 (15:59 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Fri, 27 Jul 2012 00:13:58 +0000 (08:13 +0800)
commit4d8729a139782d4facc98b7bd7d87c7d10c128b0
treeaeeac81df3dad9808622d2239cd20b7488674e4a
parenteb80411b54fde031e9a8b368ff7b32c774ecfc5c
LEDS: memory leak in blinkm_led_common_set()

This can return without freeing the bl_work struct.  Also there was no
check for allocation failure.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jan-Simon Möller <jansimon.moeller@gmx.de>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/leds-blinkm.c