[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20071022221056.GO1880@earth.li>
Date: Mon, 22 Oct 2007 23:10:56 +0100
From: Jonathan McDowell <noodles@...th.li>
To: netdev@...r.kernel.org
Subject: rfkill causes oops with NULL parent device
I'm trying to add support for the bluetooth device on Toshiba laptops
using rfkill. The device is controlled only via software and doesn't
exist at all unless enabled, at which point it appears on the USB bus.
However, doing something along the lines of:
toshiba_bluetooth_rfkill = rfkill_allocate(NULL, RFKILL_TYPE_BLUETOOTH);
if (toshiba_bluetooth_rfkill != NULL) {
result = rfkill_register(toshiba_bluetooth_rfkill);
}
causes an oops; the laptop I'm testing on doesn't have serial so it's
hard to capture the backtrace, but it's the call to device_add in
rfkill_register and there's mention of get_device_parent.
This is with 2.6.23. If rfkill *requires* a parent device then I would
have thought it should return an error if passed NULL in _allocate?
J.
--
] http://www.earth.li/~noodles/ [] I am Elmer of Borg, be vewy quiet, [
] PGP/GPG Key @ the.earth.li [] I'm assimilating wabbits. [
] via keyserver, web or email. [] [
] RSA: 4DC4E7FD / DSA: 5B430367 [] [
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists