From: Jeff Moyer Date: Fri, 12 Aug 2005 02:23:50 +0000 (-0700) Subject: [NETPOLL]: deadlock bugfix X-Git-Tag: v2.6.13-rc7~98^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a636e1357911afdea7c8344ee65f78d36caf3c16;p=platform%2Fkernel%2Flinux-exynos.git [NETPOLL]: deadlock bugfix This fixes an obvious deadlock in the netpoll code. netpoll_rx takes the npinfo->rx_lock. netpoll_rx is also the only caller of arp_reply (through __netpoll_rx). As such, it is not necessary to take this lock. Signed-off-by: Jeff Moyer Signed-off-by: Matt Mackall Signed-off-by: David S. Miller --- diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 895f3ef..b9d9da0 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -353,11 +353,8 @@ static void arp_reply(struct sk_buff *skb) struct sk_buff *send_skb; struct netpoll *np = NULL; - spin_lock_irqsave(&npinfo->rx_lock, flags); if (npinfo->rx_np && npinfo->rx_np->dev == skb->dev) np = npinfo->rx_np; - spin_unlock_irqrestore(&npinfo->rx_lock, flags); - if (!np) return;