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

Commit a7c8aada authored by Miroslav Slugen's avatar Miroslav Slugen Committed by Mauro Carvalho Chehab
Browse files

[media] cx23885-dvb: check if dvb_attach() succeded



Fix possible null dereference for Leadtek DTV 3200H
XC4000 tuner when no firmware file available.

Cc: stable@kernel.org
Signed-off-by: default avatarMiroslav Slugen <thunder.mmm@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6c2cc5b5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -943,6 +943,11 @@ static int dvb_register(struct cx23885_tsport *port)

			fe = dvb_attach(xc4000_attach, fe0->dvb.frontend,
					&dev->i2c_bus[1].i2c_adap, &cfg);
			if (!fe) {
				printk(KERN_ERR "%s/2: xc4000 attach failed\n",
				       dev->name);
				goto frontend_detach;
			}
		}
		break;
	case CX23885_BOARD_TBS_6920: