diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-12-09 22:37:19 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-14 15:16:51 +0100 |
commit | a6b07e89fd8530b943217ccd4909d1bf65acc45d (patch) | |
tree | 08719a0ffe01dfdebd13ce06465bfed6d6967bb6 /kernel/sys_ni.c | |
parent | drivers/misc: ti-st: remove redundant assignment to variables i and flags (diff) | |
download | linux-a6b07e89fd8530b943217ccd4909d1bf65acc45d.tar.xz linux-a6b07e89fd8530b943217ccd4909d1bf65acc45d.zip |
misc: xilinx_sdfec: add missing __user annotation
The second arg of xsdfec_set_order() is a 'void __user *'
and this pointer is then used in get_user() which expect
a __user pointer.
But get_user() can't be used with a void pointer, it a
pointer to the effective type. This is done here by casting
the argument to a pointer to the effective type but the
__user is missing in the cast.
Fix this by adding the missing __user in the cast.
CC: Derek Kiernan <derek.kiernan@xilinx.com>
CC: Dragan Cvetic <dragan.cvetic@xilinx.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Acked-by: Dragan Cvetic <dragan.cvetic@xilinx.com>
Link: https://lore.kernel.org/r/20191209213719.58037-1-luc.vanoostenryck@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions