summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorXiaomeng Tong <xiam0nd.tong@gmail.com>2022-03-20 18:07:33 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-04-07 05:40:41 +0300
commitbfb7789bcbd901caead43861461bc8f334c90d3b (patch)
tree89932197c4ad0589f747fb89c868de37b1b1d684 /tools/perf/util/scripting-engines/trace-event-python.c
parent03252259e18e63eb56a0d29c2fefcc30b58b812b (diff)
downloadlinux-bfb7789bcbd901caead43861461bc8f334c90d3b.tar.xz
scsi: ufs: ufshpb: Fix a NULL check on list iterator
The list iterator is always non-NULL so the check 'if (!rgn)' is always false and the dev_err() is never called. Move the check outside the loop and determine if 'victim_rgn' is NULL, to fix this bug. Link: https://lore.kernel.org/r/20220320150733.21824-1-xiam0nd.tong@gmail.com Fixes: 4b5f49079c52 ("scsi: ufs: ufshpb: L2P map management for HPB read") Reviewed-by: Daejun Park <daejun7.park@samsung.com> Signed-off-by: Xiaomeng Tong <xiam0nd.tong@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions