diff options
author | 2022-04-13 01:04:25 +0000 | |
---|---|---|
committer | 2022-08-15 20:31:34 +0200 | |
commit | e79b548b7202bb3accdfe64f113129a4340bc2f9 (patch) | |
tree | c157d7f73b77e711fc080d142780b53942d94a3c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 6.0-rc1 (diff) | |
download | linux-dev-e79b548b7202bb3accdfe64f113129a4340bc2f9.tar.xz linux-dev-e79b548b7202bb3accdfe64f113129a4340bc2f9.zip |
peci: aspeed: fix error check return value of platform_get_irq()
platform_get_irq() return negative value on failure, so null check of
priv->irq is incorrect. Fix it by comparing whether it is less than zero.
Fixes: a85e4c52086c ("peci: Add peci-aspeed controller driver")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Link: https://lore.kernel.org/r/20220413010425.2534887-1-lv.ruyi@zte.com.cn
Reviewed-by: Iwona Winiarska <iwona.winiarska@intel.com>
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions