OpenCloudOS-Kernel/drivers/media/pci/ngene
Mauro Carvalho Chehab 04da2daee3 [media] ngene: properly handle __user ptr
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>
2014-09-08 10:00:52 -03:00
..
Kconfig
Makefile
ngene-cards.c [media] ngene: fix sparse warnings 2014-09-03 09:35:32 -03:00
ngene-core.c [media] ngene: fix sparse warnings 2014-09-03 09:35:32 -03:00
ngene-dvb.c [media] ngene: properly handle __user ptr 2014-09-08 10:00:52 -03:00
ngene-i2c.c
ngene.h [media] ngene: fix sparse warnings 2014-09-03 09:35:32 -03:00