Skip to content

Commit

Permalink
[PATCH] DM9000 network driver bugfix
Browse files Browse the repository at this point in the history
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@lightmaze.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
  • Loading branch information
Sascha Hauer authored and Jeff Garzik committed Jun 26, 2005
1 parent 1db1a87 commit 5f6b551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/dm9000.c
Original file line number Diff line number Diff line change
@@ -224,7 +224,7 @@ static void dm9000_outblk_32bit(void __iomem *reg, void *data, int count)

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 @@ dm9000_release_board(struct platform_device *pdev, struct board_info *db)
}

if (db->addr_res != NULL) {
release_resource(db->data_req);
release_resource(db->addr_res);
kfree(db->addr_req);
}
}

0 comments on commit 5f6b551

Please sign in to comment.