Skip to content

Commit 80d66be

Browse files
lategoodbyegregkh
authored andcommitted
staging: vchiq_arm: Make vchiq_shutdown never fail
[ Upstream commit f2b8ebf ] Most of the users of vchiq_shutdown ignore the return value, which is bad because this could lead to resource leaks. So instead of changing all calls to vchiq_shutdown, it's easier to make vchiq_shutdown never fail. Fixes: 71bad7f ("staging: add bcm2708 vchiq driver") Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Link: https://lore.kernel.org/r/20250715161108.3411-4-wahrenst@gmx.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0fb8478 commit 80d66be

File tree

1 file changed

+1
-2
lines changed
  • drivers/staging/vc04_services/interface/vchiq_arm

1 file changed

+1
-2
lines changed

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,7 @@ int vchiq_shutdown(struct vchiq_instance *instance)
739739
struct vchiq_state *state = instance->state;
740740
int ret = 0;
741741

742-
if (mutex_lock_killable(&state->mutex))
743-
return -EAGAIN;
742+
mutex_lock(&state->mutex);
744743

745744
/* Remove all services */
746745
vchiq_shutdown_internal(state, instance);

0 commit comments

Comments
 (0)