diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 3d76fa144c4f8448eb0dc004a47d0fad3bcee3d5..a860ebbbf815f34d3c70e0c4a0d0096d7e56c261 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c @@ -377,8 +377,8 @@ dm9000_release_board(struct platform_device *pdev, struct board_info *db) kfree(db->data_req); } - if (db->addr_res != NULL) { - release_resource(db->addr_res); + if (db->addr_req != NULL) { + release_resource(db->addr_req); kfree(db->addr_req); } }