Skip to content
Snippets Groups Projects
Commit 07fd9201 authored by Martin Puryear's avatar Martin Puryear Committed by CQ bot account: commit-bot@chromium.org
Browse files

[devmgr] Don't remove already-removed device

In cases when a device has just been removed (and is flagged
as DEV_CTX_DEAD), its devhost might send it one or more last
messages.  In these cases, the debug log error "cannot
remove device twice!" is shown, which is likely to mislead
driver developers (at least it did for me).

This change suppresses a device removal that would be
initiated by the DevMgr (when Device RPC Read returns
error), if dev->flags already contains DEV_CTX_DEAD.

Test: Build, CQ

Change-Id: I1c27c89dc7dff7715a05e1e68e076dc7be6542b3
parent a79ca704
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment