diff options
| author | Philipp Stanner <pstanner@redhat.com> | 2023-11-03 12:29:33 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-07 11:08:45 +0900 |
| commit | a070830096e44ddaa64931d831f07e944d920c79 (patch) | |
| tree | 6115fd3cc764dc802f7402e4b036132457db5bd5 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | firmware: xilinx: Use proper indentation in kernel-doc (diff) | |
| download | linux-a070830096e44ddaa64931d831f07e944d920c79.tar.gz linux-a070830096e44ddaa64931d831f07e944d920c79.zip | |
drivers/comedi: use standard array-copy-function
comedi_fops.c utilizes memdup_user() to copy a userspace array.
The new function memdup_array_user() provides a standardized way to copy
userspace-arrays. It makes it easier to see that an array is being
copied and, additionally, performs a generic overflow-check which might
help make the code more robust in case of changes in the future.
Replace memdup_user() with memdup_array_user().
Suggested-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20231103112932.75795-2-pstanner@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
