aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAndre Werner <[email protected]>2025-01-21 07:18:19 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-04 13:42:42 +0000
commite8ed246ded863eb862806c5591afdcf70012ab5e (patch)
treeb793c1decf711ee0e584184acde743c3fb9f98c0 /net/unix/af_unix.c
parentLinux 6.14-rc1 (diff)
downloadkernel-e8ed246ded863eb862806c5591afdcf70012ab5e.tar.gz
kernel-e8ed246ded863eb862806c5591afdcf70012ab5e.zip
serial: sc16is7xx: Fix IRQ number check behavior
The logical meaning of the previous version is wrong due to a typo. If the IRQ equals 0, no interrupt pin is available and polling mode shall be used. Additionally, this fix adds a check for IRQ < 0 to increase robustness, because documentation still says that negative IRQ values cannot be absolutely ruled-out. Fixes: 104c1b9dde9d ("serial: sc16is7xx: Add polling mode if no IRQ pin is available") Signed-off-by: Andre Werner <[email protected]> Reviewed-by: Jiri Slaby <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Maarten Brock <[email protected]> Reviewed-by: Hugo Villeneuve <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions