aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorPavel Shilovsky <piastryyy@gmail.com>2011-08-03 23:12:18 +0400
committerSteve French <sfrench@us.ibm.com>2011-08-03 19:42:12 +0000
commit0193e072268fe62c4b19ad4b05cd0d4b23c43bb9 (patch)
tree2e4f228e8fa6b98b610b57dd017fe40cda111109 /fs/cifs
parentb80289833463215d2f3d1d72cf735fc7ba78da57 (diff)
downloadkernel_goldelico_gta04-0193e072268fe62c4b19ad4b05cd0d4b23c43bb9.zip
kernel_goldelico_gta04-0193e072268fe62c4b19ad4b05cd0d4b23c43bb9.tar.gz
kernel_goldelico_gta04-0193e072268fe62c4b19ad4b05cd0d4b23c43bb9.tar.bz2
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 <piastryyy@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/transport.c2
1 files changed, 2 insertions, 0 deletions
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;
}