V4L/DVB (8778): radio: fix incorrect video_register_device result check
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
6c9de52884
commit
cba99ae819
@@ -377,7 +377,7 @@ static int __init fmi_init(void)
|
||||
|
||||
mutex_init(&lock);
|
||||
|
||||
if (video_register_device(&fmi_radio, VFL_TYPE_RADIO, radio_nr) == -1) {
|
||||
if (video_register_device(&fmi_radio, VFL_TYPE_RADIO, radio_nr) < 0) {
|
||||
release_region(io, 2);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user