]> git.karo-electronics.de Git - karo-tx-linux.git/commit
The memory for struct led_trigger should be kfreed in the
authorMasakazu Mokuno <Masakazu.Mokuno@jp.sony.com>
Wed, 24 Aug 2011 23:47:36 +0000 (09:47 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Sep 2011 06:19:32 +0000 (16:19 +1000)
commit75f7522e49b1dec0f89de8df54fb566cc246138a
treed709017a45bcc37f2effff3c50476e37981b4eae
parent1dd2b26c0d4ef692dc4e08e3ed3d9a4098afc824
The memory for struct led_trigger should be kfreed in the
led_trigger_register() error path.  Also this function should return NULL
on error.

Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/leds/led-triggers.c