summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/cinergyT2
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-06 22:05:46 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-05-13 00:54:46 +0200
commita064fad337e27cfe74c04509e88ef4d2c9138ec2 (patch)
tree2486e6ab6c8927974d2978dd92ddbb8189fd55ad /drivers/media/dvb/cinergyT2
parentV4L/DVB (3742): Set tone/voltage again if the frontend was reinitialised (diff)
downloadlinux-a064fad337e27cfe74c04509e88ef4d2c9138ec2.tar.xz
linux-a064fad337e27cfe74c04509e88ef4d2c9138ec2.zip
V4L/DVB (3743): Fix some more potential oopses
Spotted a couple more places where it fails to check if dvb_register_adapter() fails. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/cinergyT2')
-rw-r--r--drivers/media/dvb/cinergyT2/cinergyT2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb/cinergyT2/cinergyT2.c b/drivers/media/dvb/cinergyT2/cinergyT2.c
index 71b575dc22bd..9325d039ea65 100644
--- a/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -902,7 +902,10 @@ static int cinergyt2_probe (struct usb_interface *intf,
return -ENOMEM;
}
- dvb_register_adapter(&cinergyt2->adapter, DRIVER_NAME, THIS_MODULE);
+ if ((err = dvb_register_adapter(&cinergyt2->adapter, DRIVER_NAME, THIS_MODULE)) < 0) {
+ kfree(cinergyt2);
+ return err;
+ }
cinergyt2->demux.priv = cinergyt2;
cinergyt2->demux.filternum = 256;