https://github.com/torvalds/linux
Revision 519854876c66bd04b0c12d3cead6e0e5fc5a1167 authored by Dirk Opfer on 06 September 2006, 17:53:32 UTC, committed by Jeff Garzik on 11 September 2006, 13:08:38 UTC
dm9000_release_board calls release_resource with the platform resource
instead of the requested resource:

db->addr_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
db->addr_req = request_mem_region(db->addr_res->start, i, pdev->name);

dm9000_release_board:

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

With this behavior the kernel will crash on the second removal. The
attached patch fix this problem.

Signed-off-by: Dirk Opfer <Dirk@Opfer-Online.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
1 parent 38f5745
History
Tip revision: 519854876c66bd04b0c12d3cead6e0e5fc5a1167 authored by Dirk Opfer on 06 September 2006, 17:53:32 UTC
[PATCH] Fix dm9000 release_resource
Tip revision: 5198548
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 521 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 71.0 KB
Makefile -rw-r--r-- 46.5 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top