diff options
author | Tejas Patel <tejas.patel@xilinx.com> | 2021-02-07 22:31:23 -0800 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-03-01 12:52:07 +0100 |
commit | f1f21bece82c76a56a96988ec7d51ccc033d8949 (patch) | |
tree | e31c4412a1b516876e11970ecd515bd4d4eebac7 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 (diff) |
firmware: xilinx: Fix dereferencing freed memory
Fix smatch warning:
drivers/firmware/xilinx/zynqmp.c:1288 zynqmp_firmware_remove()
error: dereferencing freed memory 'feature_data'
Use hash_for_each_safe for safe removal of hash entry.
Fixes: acfdd18591ea ("firmware: xilinx: Use hash-table for api feature check")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Link: https://lore.kernel.org/r/1612765883-22018-1-git-send-email-rajan.vaja@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions