82596: free nonexistent resource fix
authorEvgeniy Dushistov <dushistov@mail.ru>
Sun, 4 Nov 2007 20:22:29 +0000 (23:22 +0300)
committerJeff Garzik <jeff@garzik.org>
Mon, 5 Nov 2007 22:57:30 +0000 (17:57 -0500)
commitd2ea732e9ecb68841206f2761ae91360da87cfac
tree3071f40a6c8046f7c37fb646315e0d7884d9d572
parentcacd40e07c5ad7068221b3910098f1d364e74e45
82596: free nonexistent resource fix

During booting of last vanilla kernel I got:
Trying to free nonexistent resource...

This because of if "ENABLE_APRICOT" is on we do:
request_region(ioaddr,...)
if (checksum test failed)
  goto out1;
dev->base_addr = ioaddr;//<-here mistake

out1:
release_region(dev->base_addr,...)

This change fixes this bug for me.

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/82596.c