]> git.kernelconcepts.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, 22 Sep 2011 08:26:31 +0000 (18:26 +1000)
commit91273b8555f97c7c532c98d972c7caa5ead63848
tree2e7e06ca3803d09201729095ff61b42c46a10076
parent2ba9db41bf84f49dc54e6869a856b55ab5e37460
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