mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: malware@t-online.de (Malware)
To: linux-kernel@vger.kernel.org
Subject: [PATCH] sonic: Compile fix
Date: Sat, 22 Feb 2003 14:43:46 +0100	[thread overview]
Message-ID: <200302221343.h1MDhkF8029238@debian.malware.de> (raw)

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.757.40.3 -> 1.757.40.4
#	 drivers/net/sonic.c	1.4     -> 1.5    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/02/22	malware@debian.malware.de	1.757.40.4
# sonic.c:
#   Fix: Commented out reference to dev->tbusy.
#   Fix: Use the interrupt save version of dev_kfree_skb{_irq} within the interrupt handler.
# --------------------------------------------
#
diff -Nru a/drivers/net/sonic.c b/drivers/net/sonic.c
--- a/drivers/net/sonic.c	Sat Feb 22 13:29:28 2003
+++ b/drivers/net/sonic.c	Sat Feb 22 13:29:28 2003
@@ -113,6 +113,7 @@
 	if (sonic_debug > 2)
 		printk("sonic_send_packet: skb=%p, dev=%p\n", skb, dev);
 
+#if 0
 	/* 
 	 * Block a timer-based transmit from overlapping.  This could better be
 	 * done with atomic_swap(1, dev->tbusy), but set_bit() works as well.
@@ -121,6 +122,7 @@
 		printk("%s: Transmitter access conflict.\n", dev->name);
 		return 1;
 	}
+#endif
 
 	/*
 	 * Map the packet data into the logical DMA address space
@@ -232,7 +234,7 @@
 
 			/* We must free the original skb */
 			if (lp->tx_skb[entry]) {
-				dev_kfree_skb(lp->tx_skb[entry]);
+				dev_kfree_skb_irq(lp->tx_skb[entry]);
 				lp->tx_skb[entry] = 0;
 			}
 			/* and the VDMA address */

                 reply	other threads:[~2003-02-22 13:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200302221343.h1MDhkF8029238@debian.malware.de \
    --to=malware@t-online.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®