[media] mantis_dvb: fix some error codes in mantis_dvb_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 27 Jan 2017 08:06:22 +0000 (06:06 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 16:50:35 +0000 (14:50 -0200)
commit79a2eda80c6dab79790c308d9f50ecd2e5021ba3
treed1e663e1a4bee25e232767fe9cc67b235926c85b
parentc2987aaf0c9c2bcb0d4c5902d61473d9aa018a3d
[media] mantis_dvb: fix some error codes in mantis_dvb_init()

We should be returning negative error codes here or it leads to a crash.
This also silences a static checker warning.

drivers/media/pci/mantis/mantis_cards.c:250 mantis_pci_probe()
warn: 'mantis->dmxdev.dvbdev->fops' double freed

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/mantis/mantis_dvb.c