mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
agent: don't attempt to read from the device if it was released
if vdi_port_read_buf_process failes, we detach the agent and also release the read buffer. We shouldn't try reading from the device afterwards.
This commit is contained in:
parent
56c9548f64
commit
8d02c14d20
@ -831,7 +831,9 @@ static void vdi_port_read_buf_unref(VDIReadBuf *buf)
|
||||
ring was empty. So we call it again so it can complete its work if
|
||||
necessary. Note that since we can be called from spice_char_device_wakeup
|
||||
this can cause recursion, but we have protection for that */
|
||||
spice_char_device_wakeup(reds->agent_state.base);
|
||||
if (reds->agent_state.base) {
|
||||
spice_char_device_wakeup(reds->agent_state.base);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user