Commit dd49f30c authored by Douglas Schilling Landgraf's avatar Douglas Schilling Landgraf Committed by Mauro Carvalho Chehab

V4L/DVB (7092): radio-sf16fmr2: fix request_region() validation [bugzilla 9699]

This patch changed the request_region() validation to avoid invalid return.
Thanks to Roland Kletzing <devzero@web.de> for bug report and data collection.
Signed-off-by: default avatarDouglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 0e3301ec
...@@ -470,9 +470,8 @@ static int __init fmr2_init(void) ...@@ -470,9 +470,8 @@ static int __init fmr2_init(void)
mutex_init(&lock); mutex_init(&lock);
if (request_region(io, 2, "sf16fmr2")) if (!request_region(io, 2, "sf16fmr2")) {
{ printk(KERN_ERR "radio-sf16fmr2: request_region failed!\n");
printk(KERN_ERR "fmr2: port 0x%x already in use\n", io);
return -EBUSY; return -EBUSY;
} }
......
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