Do not leave connected phones behind
commit82cd2e0db29c41894c25a77c91a0b96ff60a0c67
authorJakub Jermar <jakub@jermar.eu>
Sun, 28 Oct 2018 14:28:41 +0000 (28 15:28 +0100)
committerJakub Jermar <jakub@jermar.eu>
Wed, 31 Oct 2018 06:03:38 +0000 (31 07:03 +0100)
tree958ef93dbe445d04b0f9dd8e68d9f69372afa48b
parent53ee7a00bd79fce8184a35b196907232eed3d838
Do not leave connected phones behind

The connection structure is deallocated when client_connection returns.
We must therefore not leave any connected phones behind or else any
incoming call (e.g. IPC_M_PHONE_HUNGUP) will attempt to use the
deallocated connection structure since its address is still stored as a
label in the phone and copied to the call.
uspace/srv/hid/compositor/compositor.c