aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2019-05-27 05:31:13 -0400
committerMauro Carvalho Chehab <[email protected]>2019-05-29 10:36:04 -0400
commit518fa4e0e0da97ea2e17c95ab57647ce748a96e2 (patch)
tree1442207955cfbaf7e3b2e8d4d7c6e99d650ea023 /tools/perf/scripts/python/bin/stackcollapse-record
parent3e6a515ff4d40b690511a250ceb11a6e1eba4081 (diff)
media: mc-device.c: don't memset __user pointer contents
You can't memset the contents of a __user pointer. Instead, call copy_to_user to copy links.reserved (which is zeroed) to the user memory. This fixes this sparse warning: SPARSE:drivers/media/mc/mc-device.c drivers/media/mc/mc-device.c:521:16: warning: incorrect type in argument 1 (different address spaces) Fixes: f49308878d720 ("media: media_device_enum_links32: clean a reserved field") Signed-off-by: Hans Verkuil <[email protected]> Reviewed-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions