From: Baruch Siach Date: Tue, 18 May 2010 00:45:48 +0000 (-0700) Subject: dm9000: fix "BUG: spinlock recursion" X-Git-Tag: v2.6.35-rc1~473^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=380fefb2ddabd4cd5f14dbe090481f0544e65078;p=pandora-kernel.git dm9000: fix "BUG: spinlock recursion" dm9000_set_rx_csum and dm9000_hash_table are called from atomic context (in dm9000_init_dm9000), and from non-atomic context (via ethtool_ops and net_device_ops respectively). This causes a spinlock recursion BUG. Fix this by renaming these functions to *_unlocked for the atomic context, and make the original functions locking wrappers for use in the non-atomic context. Signed-off-by: Baruch Siach Signed-off-by: David S. Miller --- Reading git-diff-tree failed