Commit a5536e10 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

dm9000: NULL dereferences on error in probe()

The dm9000_release_board() function is called with NULL ->data_req and
->addr_req pointers if dm9000_probe() fails.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 188b1210
......@@ -817,9 +817,11 @@ dm9000_release_board(struct platform_device *pdev, struct board_info *db)
/* release the resources */
if (db->data_req)
release_resource(db->data_req);
kfree(db->data_req);
if (db->addr_req)
release_resource(db->addr_req);
kfree(db->addr_req);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment