linux/drivers/media/pci/ddbridge
Daniel Scheller f597f2a8fc media: ddbridge: only register frontends in fe2 if fe is not NULL
Smatch reported:

  drivers/media/pci/ddbridge/ddbridge-core.c:1602 dvb_input_attach() error: we previously assumed 'dvb->fe' could be null (see line 1595)

dvb->fe2 will ever only be populated when dvb->fe is set. So only handle
registration of dvb->fe2 when dvb->fe got set beforehand by moving the
registration into the "if (dvb->fe)" conditional.

Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <r.scobie@clear.net.nz>
Tested-by: Jasmin Jessich <jasmin@anw.at>
Tested-by: Dietmar Spingler <d_spingler@freenet.de>
Tested-by: Manfred Knick <Manfred.Knick@t-online.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-20 07:06:51 -04:00
..
ddbridge-core.c media: ddbridge: only register frontends in fe2 if fe is not NULL 2017-08-20 07:06:51 -04:00
ddbridge-hw.c media: ddbridge: split off hardware definitions and mappings 2017-08-20 07:05:40 -04:00
ddbridge-hw.h media: ddbridge: split off hardware definitions and mappings 2017-08-20 07:05:40 -04:00
ddbridge-i2c.c media: ddbridge: split I/O related functions off from ddbridge.h 2017-08-20 07:04:53 -04:00
ddbridge-i2c.h media: ddbridge: bump ddbridge code to version 0.9.29 2017-08-20 07:01:04 -04:00
ddbridge-io.h media: ddbridge: split I/O related functions off from ddbridge.h 2017-08-20 07:04:53 -04:00
ddbridge-main.c media: ddbridge: split off hardware definitions and mappings 2017-08-20 07:05:40 -04:00
ddbridge-regs.h media: ddbridge: bump ddbridge code to version 0.9.29 2017-08-20 07:01:04 -04:00
ddbridge.h media: ddbridge: split off hardware definitions and mappings 2017-08-20 07:05:40 -04:00
Kconfig media: ddbridge: support for CineS2 V7(A) and DuoFlex S2 V4 hardware 2017-07-20 13:06:32 -04:00
Makefile media: ddbridge: split off hardware definitions and mappings 2017-08-20 07:05:40 -04:00