mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 20:48:08 +07:00
518fa4e0e0
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mc-dev-allocator.c | ||
mc-device.c | ||
mc-devnode.c | ||
mc-entity.c | ||
mc-request.c |