On Thursday 20 March 2008, Andrew Morton wrote: > ./drivers/net/usb/pegasus.c > > Possibly buggy: deadlockable (I assume) Looks just unecessary to me ... ethtool MII ops get called from a task context, as I recall, and other drivers just rely on that. - Dave ========= CUT HERE Remove superfluous in-atomic() check; ethtool MII ops are called from task context. Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> --- drivers/net/usb/pegasus.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- g26.orig/drivers/net/usb/pegasus.c 2008-03-21 08:53:28.000000000 -0700 +++ g26/drivers/net/usb/pegasus.c 2008-03-21 08:54:07.000000000 -0700 @@ -1128,12 +1128,8 @@ pegasus_get_settings(struct net_device * { pegasus_t *pegasus; - if (in_atomic()) - return 0; - pegasus = netdev_priv(dev); mii_ethtool_gset(&pegasus->mii, ecmd); - return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html