diff options
author | Michal Swiatkowski <michal.swiatkowski@linux.intel.com> | 2025-03-12 10:52:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2025-03-19 09:57:37 +0000 |
commit | 3178d2b048365fe2c078cd53f85f2abf1487733b (patch) | |
tree | 730c91319266d5994452fcbf31590f3661acf348 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3614bf90130d60f191a5fe218d04f6251c678e13 (diff) |
phy: fix xa_alloc_cyclic() error handling
xa_alloc_cyclic() can return 1, which isn't an error. To prevent
situation when the caller of this function will treat it as no error do
a check only for negative here.
Fixes: 384968786909 ("net: phy: Introduce ethernet link topology representation")
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions