summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@gmail.com>2008-01-27 12:29:51 -0200
committerDouglas Schilling Landgraf <dougsland@gmail.com>2008-01-27 12:29:51 -0200
commit74760b07c965cf47b191f72af5c534e01945f4af (patch)
treedfca75a44ccf490dd23ff7ca55ba45f57bc3392d /linux/drivers
parentf29bf2a24e9a67b1b6235c1de88a752f4b5e7994 (diff)
downloadmediapointer-dvb-s2-74760b07c965cf47b191f72af5c534e01945f4af.tar.gz
mediapointer-dvb-s2-74760b07c965cf47b191f72af5c534e01945f4af.tar.bz2
Fix bugzilla 9699
From: Douglas Schilling Landgraf <dougsland@gmail.com> Changed request_region() validation to avoid crash. Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/radio/radio-sf16fmr2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/radio/radio-sf16fmr2.c b/linux/drivers/media/radio/radio-sf16fmr2.c
index a61076fb2..ef5366099 100644
--- a/linux/drivers/media/radio/radio-sf16fmr2.c
+++ b/linux/drivers/media/radio/radio-sf16fmr2.c
@@ -475,9 +475,8 @@ static int __init fmr2_init(void)
mutex_init(&lock);
- if (request_region(io, 2, "sf16fmr2"))
- {
- printk(KERN_ERR "fmr2: port 0x%x already in use\n", io);
+ if (!request_region(io, 2, "sf16fmr2")) {
+ printk(KERN_ERR "radio-sf16fmr2: request_region failed!\n");
return -EBUSY;
}