msm: mhi: Reset the pending packets counter in UCI

Reset the pending packets counter in UCI when a client releases
the character device node.

Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Change-Id: Ic3d83873ae207e76acbb9f60683b43cb30ff7c5b
This commit is contained in:
Andrei Danaila 2014-10-21 14:32:38 -07:00 committed by David Keitel
parent 9de41649cc
commit 24d7f8a8d6

View file

@ -655,6 +655,7 @@ static int mhi_uci_client_release(struct inode *mhi_inode,
uci_handle->in_buf_list[i])); uci_handle->in_buf_list[i]));
} }
} }
atomic_set(&uci_handle->avail_pkts, 0);
} else { } else {
uci_log(UCI_DBG_ERROR, uci_log(UCI_DBG_ERROR,
"Client close chan %d, ref count 0x%x\n", "Client close chan %d, ref count 0x%x\n",