Skip to content

Commit c81400b

Browse files
Sergei Shtylyovdavem330
authored andcommitted
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 <[email protected]> Tested-by: Matthew Whitehead <[email protected]> Signed-off-by: Sergei Shtylyov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a3dbbc2 commit c81400b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/3com/3c59x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ static int vortex_eisa_remove(struct device *device)
951951

952952
unregister_netdev(dev);
953953
iowrite16(TotalReset|0x14, ioaddr + EL3_CMD);
954-
release_region(dev->base_addr, VORTEX_TOTAL_SIZE);
954+
release_region(edev->base_addr, VORTEX_TOTAL_SIZE);
955955

956956
free_netdev(dev);
957957
return 0;

0 commit comments

Comments
 (0)