From: David Howells Date: Thu, 6 Oct 2016 07:11:50 +0000 (+0100) Subject: afs: Check for fatal error when in waiting for ack state X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9008f998a2e992991a5d60656d4573ba4c516c58;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git afs: Check for fatal error when in waiting for ack state When it's in the waiting-for-ACK state, the AFS filesystem needs to check the result of rxrpc_kernel_recv_data() any time it is notified to see if it is indicating a fatal error. If this is the case, it needs to mark the call completed otherwise the call just sits there and never goes away. Signed-off-by: David Howells --- diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c index 59bdaa7527b6..477928b25940 100644 --- a/fs/afs/rxrpc.c +++ b/fs/afs/rxrpc.c @@ -418,7 +418,7 @@ static void afs_deliver_to_call(struct afs_call *call) &call->abort_code); if (ret == -EINPROGRESS || ret == -EAGAIN) return; - if (ret == 1) { + if (ret == 1 || ret < 0) { call->state = AFS_CALL_COMPLETE; goto done; }