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

Commit 6430a5a3 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

V4L/DVB (7806): em28xx: dvb_unregister_frontend() shouldn't be called, if not registered yet

parent f50090fc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -251,7 +251,6 @@ static int attach_xc3028(u8 addr, struct em28xx *dev)
		printk(KERN_ERR "%s/2: xc3028 attach failed\n",
		       dev->name);
		dvb_frontend_detach(dev->dvb->frontend);
		dvb_unregister_frontend(dev->dvb->frontend);
		dev->dvb->frontend = NULL;
		return -EINVAL;
	}