diff options
| author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2026-04-17 10:42:33 +0300 |
|---|---|---|
| committer | Jassi Brar <jassisinghbrar@gmail.com> | 2026-04-18 21:10:14 +0300 |
| commit | dd9aa1f269000d679f4ec12b32abacfc8d921413 (patch) | |
| tree | 2ef069de1be1858cefe8cfab86f84f73400cab2e /include/linux/timerqueue.h | |
| parent | a068c4d42c035c63b26ff91c394e6dc2cb7dc5d0 (diff) | |
| download | linux-dd9aa1f269000d679f4ec12b32abacfc8d921413.tar.xz | |
mailbox: mailbox-test: handle channel errors consistently
mbox_test_request_channel() returns either an ERR_PTR or NULL. The
callers, however, mostly checked for non-NULL which allows for bogus
code paths when an ERR_PTR is treated like a valid channel. A later
commit tried to fix it in one place but missed the other ones. Because
the ERR_PTR is only used for -ENOMEM once and is converted to
-EPROBE_DEFER anyhow, convert the callee to only return NULL which
simplifies handling a lot and makes it less error prone.
Fixes: 8ea4484d0c2b ("mailbox: Add generic mechanism for testing Mailbox Controllers")
Fixes: 9b63a810c6f9 ("mailbox: mailbox-test: Fix an error check in mbox_test_probe()")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
