Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c39e53d7 authored by Andrei Danaila's avatar Andrei Danaila Committed by Matt Wagantall
Browse files

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: default avatarAndrei Danaila <adanaila@codeaurora.org>
Change-Id: Ic3d83873ae207e76acbb9f60683b43cb30ff7c5b
parent 02942f61
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -655,6 +655,7 @@ static int mhi_uci_client_release(struct inode *mhi_inode,
						uci_handle->in_buf_list[i]));
			}
		}
		atomic_set(&uci_handle->avail_pkts, 0);
	} else {
		uci_log(UCI_DBG_ERROR,
			"Client close chan %d, ref count 0x%x\n",