]> git.baikalelectronics.ru Git - kernel.git/commit
3c59x: fix freeing nonexistent resource on driver unload
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 2 May 2013 11:10:22 +0000 (11:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 May 2013 16:22:11 +0000 (12:22 -0400)
commitc7db75c3f92659948dfdde2d46e86ec11fc435bd
tree36cafe2ad9c4a79ce7f43cde3d3c8253e59f15b3
parent8aaba013c496ec9d4018c326a6a8fc04952ba8a8
3c59x: fix freeing nonexistent resource on driver unload

When unloading the driver that drives an EISA board, a message similar to the
following one is displayed:

Trying to free nonexistent resource <0000000000013000-000000000001301f>

Then an user is unable to reload the driver because the resource it requested in
the previous load hasn't been freed. This happens most probably due to a typo in
vortex_eisa_remove() which calls release_region() with 'dev->base_addr'  instead
of 'edev->base_addr'...

Reported-by: Matthew Whitehead <tedheadster@gmail.com>
Tested-by: Matthew Whitehead <tedheadster@gmail.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c59x.c