summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>2025-03-12 12:52:49 +0300
committerDavid S. Miller <davem@davemloft.net>2025-03-19 12:57:36 +0300
commitf3b97b7d4bf316c3991e5634c9f4847c2df35478 (patch)
treef4d0a6c051a2a2ee4a241f32e033b58c5f07c5c6 /tools/perf/scripts/python/exported-sql-viewer.py
parent9a81fc3480bf5dbe2bf80e278c440770f6ba2692 (diff)
downloadlinux-f3b97b7d4bf316c3991e5634c9f4847c2df35478.tar.xz
devlink: fix xa_alloc_cyclic() error handling
In case of returning 1 from xa_alloc_cyclic() (wrapping) ERR_PTR(1) will be returned, which will cause IS_ERR() to be false. Which can lead to dereference not allocated pointer (rel). Fix it by checking if err is lower than zero. This wasn't found in real usecase, only noticed. Credit to Pierre. Fixes: c137743bce02 ("devlink: introduce object and nested devlink relationship infra") Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions