diff options
| author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 20:44:04 -0300 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2016-11-20 01:16:48 +0000 |
| commit | 0f7cc2971026a5e3c368bfd159838c5575ddfb86 (patch) | |
| tree | 50ccc2b976424da5577c41498684730ca8ecf611 /include/linux/flex_array.h | |
| parent | a05cd914b6a76bab7fe48b60833b26222d787d1f (diff) | |
ngene: properly handle __user ptr
commit 04da2daee383391954b34e7d0fe0281d75447d61 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>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions
