]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uio: Fix return value of poll
authorAngus Chen <angus.chen@jaguarmicro.com>
Tue, 26 Nov 2024 12:42:58 +0000 (20:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jan 2025 08:52:39 +0000 (09:52 +0100)
commitefc7ae3f249a6aa2de8f6bec56a2314badfd340a
tree28dd3a3b01373ead73a2ca4349bcd66f6efc062e
parent54932d72544dc38d6771597523cca78b1729a442
uio: Fix return value of poll

The return type of __poll_t can't be negative,
-EIO will be translate to __poll_t,and will return to caller.

Fixes: beafc54c4e2f ("UIO: Add the User IO core code")
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
Link: https://lore.kernel.org/r/20241126124259.1367-1-angus.chen@jaguarmicro.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c