Skip to contentSkip to conversation

Please pull 'fixes-davem' branch of wireless-2.6

PATCH John W. Linville 2 participants 2 messages Jan 16, 2008 – Jan 18, 2008 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Dave,

One more fix for rfkill in 2.6.24...note that this branch is based on 2.6.24-rc8.

Thanks,

John

---

Individual patches available here:

http://www.kernel.org/pub/linux/kernel/people/linville/wireless-2.6/fixes-davem/

---

The following changes since commit cbd9c883696da72b2b1f03f909dbacc04bbf8b58:
Linus Torvalds (1):

        Linux 2.6.24-rc8

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git fixes-davem

Eric Paris (1):
rfkill: call rfkill_led_trigger_unregister() on error

 net/rfkill/rfkill.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
net/rfkill/rfkill.c +4 -1
index 4469a7b..d06d338 100644
@@ -392,11 +392,14 @@ int rfkill_register(struct rfkill *rfkill)
 	rfkill_led_trigger_register(rfkill);
 
 	error = rfkill_add_switch(rfkill);
-	if (error)
+	if (error) {
+		rfkill_led_trigger_unregister(rfkill);
 		return error;
+	}
 
 	error = device_add(dev);
 	if (error) {
+		rfkill_led_trigger_unregister(rfkill);
 		rfkill_remove_switch(rfkill);
 		return error;
 	}
Signature · 2 lines
John W. Linville
[email protected]