diff options
author | Ma Ke <[email protected]> | 2024-08-28 21:18:14 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-09-03 12:33:09 +0200 |
commit | 62c5a01a5711c8e4be8ae7b6f0db663094615d48 (patch) | |
tree | 10c769a243c217c739fd781f50f8a4305a2fbbcb /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 43027957e87fe18afd9ab872915bf4012d53929d (diff) |
pps: add an error check in parport_attach
In parport_attach, the return value of ida_alloc is unchecked, witch leads
to the use of an invalid index value.
To address this issue, index should be checked. When the index value is
abnormal, the device should be freed.
Found by code review, compile tested only.
Cc: [email protected]
Fixes: fb56d97df70e ("pps: client: use new parport device model")
Signed-off-by: Ma Ke <[email protected]>
Acked-by: Rodolfo Giometti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions