From: Pavel Shilovsky Date: Wed, 3 Aug 2011 19:12:18 +0000 (+0400) Subject: CIFS: Fix missing a decrement of inFlight value X-Git-Tag: v3.1-rc1~12^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0193e072268fe62c4b19ad4b05cd0d4b23c43bb9;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git CIFS: Fix missing a decrement of inFlight value if we failed on getting mid entry in cifs_call_async. Cc: stable@kernel.org Signed-off-by: Pavel Shilovsky Signed-off-by: Steve French --- diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 147aa22..c1b9c4b 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -362,6 +362,8 @@ cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov, mid = AllocMidQEntry(hdr, server); if (mid == NULL) { mutex_unlock(&server->srv_mutex); + atomic_dec(&server->inFlight); + wake_up(&server->request_q); return -ENOMEM; }