commit | 926d344467f458abd1257f8a9b4093f44c74ff71 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Aug 26 12:27:40 2015 -0700 |
committer | Yabin Cui <yabinc@google.com> | Wed Aug 26 15:06:43 2015 -0700 |
tree | e24b0507e0339c3b625fcd60d891ead682998149 | |
parent | 30a4acd16480c7b533431ae6b029437d3fe7e77d [diff] |
adb: fix a data race in local_socket_event_func. If s->peer->enqueue() failed, s may be freed. So we should use saved_xxx instead of s->xxx before verifying the return value. Change-Id: I6c072406dceb98e2d02798d0dcdc428fa99e66fb