linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: linux-kernel@vger.kernel.org
Cc: Jochen Karrer <j.karrer@lightmaze.com>
Subject: [PATCH] DM9000 network driver bugfix
Date: Fri, 13 May 2005 21:04:15 +0200	[thread overview]
Message-ID: <20050513190415.GA18358@metis.pengutronix.de> (raw)

This patch fixes two bugs in the dm9000 network driver:
- Don't read one byte too much in 8bit mode.
- release correct resource

Signed-off-by: Jochen Karrer <j.karrer@xxxxxxxxxxxxxxxx>
Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxxxx>

diff -urN linux-2.6.12-rc4-mm1/drivers/net/dm9000.c linux-2.6.12-rc4-mm1-work/drivers/net/dm9000.c
--- linux-2.6.12-rc4-mm1/drivers/net/dm9000.c	2005-05-13 12:10:42.000000000 +0200
+++ linux-2.6.12-rc4-mm1-work/drivers/net/dm9000.c	2005-05-13 12:14:38.000000000 +0200
@@ -224,7 +224,7 @@
 
 static void dm9000_inblk_8bit(void __iomem *reg, void *data, int count)
 {
-	readsb(reg, data, count+1);
+	readsb(reg, data, count);
 }
 
 
@@ -364,7 +364,7 @@
 	}
 
 	if (db->addr_res != NULL) {
-		release_resource(db->data_req);
+		release_resource(db->addr_res);
 		kfree(db->addr_req);
 	}
 }


                 reply	other threads:[~2005-05-13 19:11 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=20050513190415.GA18358@metis.pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=j.karrer@lightmaze.com \
    --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;
as well as URLs for NNTP newsgroup(s).