diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-03-24 19:40:02 +0100 |
---|---|---|
committer | Anton Kochkov <anton.kochkov@gmail.com> | 2013-03-25 15:34:53 +0100 |
commit | 59c020ab15fcc090e0605df1e17f41ffa861b153 (patch) | |
tree | 2c95fa243ea9e253ed0fc2c66a02ad46d6ad59c2 /util/nvramtool | |
parent | 7a9da71c5f276cdfd986ad81b2b344fc641bd0a7 (diff) | |
download | coreboot-59c020ab15fcc090e0605df1e17f41ffa861b153.tar.xz |
libpayload: fix use-after-free in usb_exit()
The controller's shutdown function free()s the controller structure so
we shouldn't access it any more after calling shutdown.
As all controllers detach themself, i.e. unchain themself from usb_hcs,
just keep iterating over usb_hcs until it's NULL.
Change-Id: Ie85caba0f685494c3fe04c550a5a14bc4158a94e
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-on: http://review.coreboot.org/2900
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Diffstat (limited to 'util/nvramtool')
0 files changed, 0 insertions, 0 deletions