]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
rfkill: call rfkill_led_trigger_unregister() on error
authorEric Paris <eparis@redhat.com>
Sun, 13 Jan 2008 21:20:56 +0000 (16:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2008 04:31:36 +0000 (20:31 -0800)
commit632041f306707df94110441f55b1458ebeb096db
treeeffe40dae5c459f6ee20ce55d2f2f7810aceb132
parenta7da60f41551abb3c520b03d42ec05dd7decfc7f
rfkill: call rfkill_led_trigger_unregister() on error

Code inspection turned up that error cases in rfkill_register() do not
call rfkill_led_trigger_unregister() even though we have already
registered.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/rfkill/rfkill.c