linux-can.vger.kernel.org archive mirror
 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

* Re: [PATCH 1/1] can: Avoid calling kfree_skb from interrupt context
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Kleine-Budde @ 2014-11-18 20:45 UTC (permalink / raw)
  To: Thomas Körper, linux-can

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

On 10/31/2014 07:33 AM, Thomas Körper wrote:
> Called in can_free_echo_skb, which might be called from (TX Error) interrupt.

Applied to can/master.

Thanks, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).