Fix use-after-free in wifi_cleanup()
authorPaul Stewart <pstew@google.com>
Wed, 18 Nov 2015 18:28:32 +0000 (10:28 -0800)
committerPaul Stewart <pstew@google.com>
Mon, 7 Dec 2015 18:32:29 +0000 (18:32 +0000)
commit2ce1c4952d871f2baad0bc69dd8500f830f43db4
tree1bd8b850077e91597b25dae81ff1545c42edac84
parent3522524bada6acaa0a6cf2f6f94f65541febad61
Fix use-after-free in wifi_cleanup()

Release reference to cmd only after possibly calling getType().

BUG: 25753768
Change-Id: Id2156ce51acec04e8364706cf7eafc7d4adae9eb
(cherry picked from commit d7f3cb9915d9ac514393d0ad7767662958054b8f https://googleplex-android-review.git.corp.google.com/#/c/815223)
bcmdhd/wifi_hal/wifi_hal.cpp