]> 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, 15 Sep 2011 06:21:34 +0000 (16:21 +1000)
commit1b79c91ad568172752df3bb9fa6f20c7b092f7b2
treebb742bbbbc7777408f2108c09908a67e4a513adc
parente66141df213d3663a72f66c0160a2a1d87083380
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