lkml.org 
[lkml]   [2005]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] DM9000 network driver bugfix
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);
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-13 21:18    [W:0.017 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site