diff options
author | Lv Ruyi <[email protected]> | 2022-04-13 01:04:25 +0000 |
---|---|---|
committer | Iwona Winiarska <[email protected]> | 2022-08-15 20:31:34 +0200 |
commit | e79b548b7202bb3accdfe64f113129a4340bc2f9 (patch) | |
tree | c157d7f73b77e711fc080d142780b53942d94a3c /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) |
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 <[email protected]>
Signed-off-by: Lv Ruyi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Iwona Winiarska <[email protected]>
Signed-off-by: Iwona Winiarska <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions