]> 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>
Mon, 5 Sep 2011 07:02:30 +0000 (17:02 +1000)
commit4423c8f0c091f63721dd948c278244fe6bc31079
treea90241517db7eea78f84731b000bea35eb82cc70
parentc965c4f55c408733dd12a3479b2917614dfb6bfe
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