soc: qcom: spcom: fix pending rx packet handling
When spcomlib read() system call exits on ERESTARTSYS,
an rx packet arriving later is stuck till next read()
context arrives.
The ERESTARTSYS error is not handled in userspace if the userspace
app is killed/suspended. So, new spcom session reads the response
that belongs to the previous spcom session.
Logic is added to read pending data in rx_buf only if received in
the same spcom session.
Change-Id: Ib3bad1dc8c0101fcad9a39b20d4925c065baa81d
Signed-off-by:
Amandeep Virk <avirk@codeaurora.org>
Loading
Please register or sign in to comment