diff options
| author | Harshal Chaudhari <[email protected]> | 2020-11-01 22:39:49 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-11-03 10:11:48 +0100 |
| commit | c78c95f919539cad0308e7de0d5d0d656e4a8e98 (patch) | |
| tree | fd295f2663d0a6ee12421e8216cfc7f12df97df6 /tools/perf/scripts/python | |
| parent | 33fcc5491897504856783335102142676dbee817 (diff) | |
misc: xilinx-sdfec: remove check for ioctl cmd and argument.
if (_IOC_TYPE(cmd) != PP_IOCTL)
return -ENOTTY;
Invalid ioctl command check normally performs by “default” case.
if (_IOC_DIR(cmd) != _IOC_NONE) {
argp = (void __user *)arg;
if (!argp)
return -EINVAL; }
And for checking ioctl arguments, copy_from_user()/copy_to_user()
checks are enough.
Reviewed-by: Arnd Bergmann <[email protected]>
Signed-off-by: Harshal Chaudhari <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions