Commit 19afe6c2 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] esp janitor work

o check request_region result
o handle failure gracefully
parent 049cbf98
......@@ -2476,9 +2476,13 @@ static _INLINE_ int autoconfig(struct esp_struct * info, int *region_start)
} else
*region_start = info->port;
request_region(*region_start,
if (!request_region(*region_start,
info->port - *region_start + 8,
"esp serial");
"esp serial"))
{
restore_flags(flags);
return -EIO;
}
/* put card in enhanced mode */
/* this prevents access through */
......
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