android_kernel_xiaomi_sm8350/drivers/media/dvb
Malcolm Priestley 75aecc3af2 [media] DM04/QQBOX Frontend attach change
On Fri, 2010-12-03 at 09:32 -0200, Mauro Carvalho Chehab wrote:
> Em 27-11-2010 11:13, Malcolm Priestley escreveu:
> > Driver Version v1.73 - Frontend attach change.
> > To stop double rc registration in multi tuner environment or firmware change.
> >
> > Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
> >
> >
> > +static int lme_name(struct dvb_usb_adapter *adap)
> > +{
> > +	struct lme2510_state *st = adap->dev->priv;
> > +	const char *desc = adap->dev->desc->name;
> > +	char *fe_name[] = {"", " LG TDQY-P001F", " SHARP:BS2F7HZ7395"};
> > +	char *name = adap->fe->ops.info.name;
> > +
> > +	strcpy(name, desc);
> > +	strcat(name, fe_name[st->tuner_config]);
>
> Please use, instead, strlcpy/strlcat, to avoid writing outside the buffer size.
>

Driver Version v1.74
Amended patch with change to strlcpy/strlcat.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-12-29 08:17:03 -02:00
..
b2c2
bt8xx
dm1105 [media] Rename all public generic RC functions from ir_ to rc_ 2010-12-29 08:16:50 -02:00
dvb-core BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
dvb-usb [media] DM04/QQBOX Frontend attach change 2010-12-29 08:17:03 -02:00
firewire
frontends [media] stb6100: warning cleanup 2010-12-29 08:16:52 -02:00
mantis [media] rc: use rc_map_ prefix for all rc map tables 2010-12-29 08:16:52 -02:00
ngene [media] ngene-core.c: Remove unnecessary casts of pci_get_drvdata 2010-12-29 08:16:56 -02:00
pluto2
pt1
siano [media] media: Remove unnecessary casts of usb_get_intfdata 2010-12-29 08:16:58 -02:00
ttpci [media] Rename all public generic RC functions from ir_ to rc_ 2010-12-29 08:16:50 -02:00
ttusb-budget
ttusb-dec
Kconfig
Makefile