linux/drivers/media/pci
Mauro Carvalho Chehab 0f7cc29710 ngene: properly handle __user ptr
commit 04da2daee3 upstream.

Sparse is complaining about ngene's bad usage of a __user ptr:

>> drivers/media/pci/ngene/ngene-dvb.c:62:48: sparse: incorrect type in argument 2 (different address spaces)
   drivers/media/pci/ngene/ngene-dvb.c:62:48:    expected unsigned char const [usertype] *buf
   drivers/media/pci/ngene/ngene-dvb.c:62:48:    got char const [noderef] <asn:1>*buf

As this is intercepting a .write() file ops, we can't just memcpy. We need to use
copy_from_user.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-11-20 01:16:48 +00:00
..
b2c2 [media] pci: flexcop: Remove redundant pci_set_drvdata 2013-10-17 05:56:55 -03:00
bt8xx bttv: Width must be a multiple of 16 when capturing planar formats 2016-05-01 00:05:52 +02:00
cx18 media: cx18: fix kernel oops with tda8290 tuner 2014-10-05 13:41:10 -07:00
cx88 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
cx23885 cx23885: uninitialized variable in cx23885_av_work_handler() 2016-08-22 22:37:50 +01:00
cx25821 [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
ddbridge [media] ddbridge: remove unneeded an NULL check 2014-03-11 15:55:37 -03:00
dm1105 [media] dm1105: remove unneeded not-null test 2013-10-31 04:53:40 -02:00
ivtv [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
mantis [media] pci: mantis: Remove redundant pci_set_drvdata 2013-10-17 06:01:32 -03:00
meye [media] misc drivers: remove deprecated IRQF_DISABLED 2013-10-17 06:08:31 -03:00
ngene ngene: properly handle __user ptr 2016-11-20 01:16:48 +00:00
pluto2 [media] media_tree: Fix spelling errors 2013-12-09 14:50:50 -02:00
pt1 [media] pci: pt1: Remove redundant pci_set_drvdata 2013-10-17 06:01:59 -03:00
saa7134 saa7134: Fix bytesperline not being set correctly for planar formats 2016-05-01 00:05:48 +02:00
saa7146 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
saa7164 [media] saa7164: fix return value check in saa7164_initdev() 2013-11-29 14:20:06 -02:00
sta2x11 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
ttpci [media] av7110: fix confusing indenting 2014-05-23 12:15:11 -03:00
zoran [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
Kconfig Properly handle tristate dependencies on USB/PCI menus 2013-06-17 11:40:28 -03:00
Makefile [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00