]> 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>
Thu, 1 Sep 2011 03:28:57 +0000 (13:28 +1000)
commit9228fa9164820595358a0732833972e48941fcc6
treeb892252511d8c7a030ca9619cfb841a28c94e2b2
parent39a60dd36f4ab7dda6cd49a7b676e80c8e652caf
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