All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] can: Avoid calling kfree_skb from interrupt context
@ 2014-10-31  6:33 Thomas Körper
  2014-11-18 20:45 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Körper @ 2014-10-31  6:33 UTC (permalink / raw)
  To: linux-can; +Cc: Thomas Körper

Called in can_free_echo_skb, which might be called from (TX Error) interrupt.

Signed-off-by: Thomas Körper <thomas.koerper@esd.eu>
---
 drivers/net/can/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c
index 9f91fcb..6403503 100644
--- a/drivers/net/can/dev.c
+++ b/drivers/net/can/dev.c
@@ -383,7 +383,7 @@ void can_free_echo_skb(struct net_device *dev, unsigned int idx)
 	BUG_ON(idx >= priv->echo_skb_max);
 
 	if (priv->echo_skb[idx]) {
-		kfree_skb(priv->echo_skb[idx]);
+		dev_kfree_skb_any(priv->echo_skb[idx]);
 		priv->echo_skb[idx] = NULL;
 	}
 }
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-18 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-31  6:33 [PATCH 1/1] can: Avoid calling kfree_skb from interrupt context Thomas Körper
2014-11-18 20:45 ` Marc Kleine-Budde

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.