Commit 0a030a29 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] region handling cleanup

Done by William Stinson.
Adds error handling to request_region() calls,
and converts some old check_region() calls too.
parent bffc5050
......@@ -3370,7 +3370,8 @@ int __init cdu31a_init(void)
if (drive_found) {
int deficiency = 0;
request_region(cdu31a_port, 4, "cdu31a");
if (!request_region(cdu31a_port, 4, "cdu31a"))
goto errout3;
if (devfs_register_blkdev(MAJOR_NR, "cdu31a", &scd_bdops)) {
printk("Unable to get major %d for CDU-31a\n",
......
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