[media] dm1105: release dvbnet on frontend attachment failure
authorJonathan Nieder <jrnieder@gmail.com>
Fri, 6 Jan 2012 17:40:26 +0000 (14:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 7 Jan 2012 13:54:03 +0000 (11:54 -0200)
The patch "dm1105: handle errors from dvb_net_init" moved the
initialization of dvbnet to before frontend attachment but forgot
to adjust the error handling when frontend attachment fails.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dm1105/dm1105.c

index 70e040b..a609b3a 100644 (file)
@@ -1121,7 +1121,7 @@ static int __devinit dm1105_probe(struct pci_dev *pdev,
 
        ret = frontend_init(dev);
        if (ret < 0)
-               goto err_disconnect_frontend;
+               goto err_dvb_net;
 
        dm1105_ir_init(dev);