diff options
| author | Colin Ian King <[email protected]> | 2021-06-15 14:00:11 +0100 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-06-15 15:37:11 -0600 |
| commit | fdd1dc316e8959b6730d733fba025a39dac7938f (patch) | |
| tree | ba1c43a46f63968b4ad9e49392075c59c3cc1d06 /tools/perf/scripts/python/stackcollapse.py | |
| parent | aeab9506ef50d23b350d1822c324023c9e1cb783 (diff) | |
io_uring: Fix incorrect sizeof operator for copy_from_user call
Static analysis is warning that the sizeof being used is should be
of *data->tags[i] and not data->tags[i]. Although these are the same
size on 64 bit systems it is not a portable assumption to assume
this is true for all cases. Fix this by using a temporary pointer
tag_slot to make the code a clearer.
Addresses-Coverity: ("Sizeof not portable")
Fixes: d878c81610e1 ("io_uring: hide rsrc tag copy into generic helpers")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions