]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: vchiq_core: Return -EINTR when bulk transfers are interrupted
authorUmang Jain <umang.jain@ideasonboard.com>
Wed, 18 Sep 2024 16:30:58 +0000 (22:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Oct 2024 09:58:47 +0000 (11:58 +0200)
commit80f8ea98e43e2b3e62c576af0a60efba9608d8f1
tree1e51a0861c8b7ecc70f1b2484fcd695964de5147
parent72925dec88342c50ca3a39c91f6614d6921bb46f
staging: vchiq_core: Return -EINTR when bulk transfers are interrupted

Bulk transfers for various VCHIQ modes use mutex_lock_killable() and
wait_for_completion_killable() variations. Currently, -EAGAIN is
returned if these are interrupted by a fatal signal.

-EAGAIN may mislead the caller into thinking the operation can be
retried, while in reality, the process has received a fatal signal
and is terminating. Therefore, we should update the return value to
align with what these killable functions would return, specifically
-EINTR (Interrupted system call).

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20240918163100.870596-5-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c