Message ID | 20230327210217.60948-2-mailingradian@gmail.com |
---|---|
State | Accepted |
Commit | b6a062853ddf6b4f653af2d8b75ba45bb9a036ad |
Headers | show |
Series | misc: fastrpc: Fixes for issues in userspace | expand |
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index f48466960f1b..20c035af373a 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -2337,8 +2337,10 @@ static void fastrpc_notify_users(struct fastrpc_user *user) struct fastrpc_invoke_ctx *ctx; spin_lock(&user->lock); - list_for_each_entry(ctx, &user->pending, node) + list_for_each_entry(ctx, &user->pending, node) { + ctx->retval = -EPIPE; complete(&ctx->work); + } spin_unlock(&user->lock); }