Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5e598a6 authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (13805): Fix: Unregister the frontend before detaching

parent 0ac6e141
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -281,8 +281,8 @@ int __devexit mantis_dvb_exit(struct mantis_pci *mantis)
		err = mantis_frontend_shutdown(mantis);
		err = mantis_frontend_shutdown(mantis);
		if (err != 0)
		if (err != 0)
			dprintk(MANTIS_ERROR, 1, "Frontend exit while POWER ON! <%d>", err);
			dprintk(MANTIS_ERROR, 1, "Frontend exit while POWER ON! <%d>", err);
		dvb_frontend_detach(mantis->fe);
		dvb_unregister_frontend(mantis->fe);
		dvb_unregister_frontend(mantis->fe);
		dvb_frontend_detach(mantis->fe);
	}
	}


	tasklet_kill(&mantis->tasklet);
	tasklet_kill(&mantis->tasklet);