diff options
| author | Everest K.C. <everestkc@everestkc.com.np> | 2024-10-15 15:51:55 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-16 09:55:31 +0200 |
| commit | b0a7dfeb7df670bb8603e043c9634aa9eda42a49 (patch) | |
| tree | aea34fbd26fc1fa1ac5dee40d0b5ed05321250fe /tools/perf/scripts/python/syscall-counts.py | |
| parent | staging: gpib: mark FMH driver as broken (diff) | |
| download | linux-b0a7dfeb7df670bb8603e043c9634aa9eda42a49.tar.gz linux-b0a7dfeb7df670bb8603e043c9634aa9eda42a49.zip | |
staging: gpib: Move free after the variable use has been completed
The variable `in_data` is freed, but used later in the code.
Fix it by moving the freeing the memory after it use has been
completed.
This issue was reported by Coverity Scan.
Report:
CID 1600783: (#1 of 1): Use after free (USE_AFTER_FREE)
19. pass_freed_arg: Passing freed pointer in_data as an argument to
ni_usb_dump_raw_block.
Fixes: 4e127de14fa7 ("staging: gpib: Add National Instruments USB GPIB driver")
Signed-off-by: Everest K.C. <everestkc@everestkc.com.np>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20241015215157.18571-1-everestkc@everestkc.com.np
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
