diff options
| author | Al Viro <[email protected]> | 2019-10-17 20:39:21 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-11-06 00:04:03 -0500 |
| commit | c35a5cfb41509c2214228aa321509ffd91cbf063 (patch) | |
| tree | d048d4a53a89eb168c390cf9e1d79b12ddd9312d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 062c9d4527ccbdbf49139607efd44c9c3f82a2fd (diff) | |
scsi: sg: sg_read(): simplify reading ->pack_id of userland sg_io_hdr_t
We don't need to allocate a temporary buffer and read the entire structure
in it, only to fetch a single field and free what we'd allocated. Just use
get_user() and be done with it...
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Al Viro <[email protected]>
Acked-by: Douglas Gilbert <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions