diff options
author | Dan Williams <dcbw@redhat.com> | 2013-10-14 17:51:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-18 14:03:54 -0400 |
commit | 1dfba3060fe7ee03ccec25a91d35085142dfc295 (patch) | |
tree | c27da4ef59aeaa75b1d39c46af0aeed4f7ba7147 /mm | |
parent | e07f01e4c7d583adb1ec25e63a52db5fc10a94d3 (diff) | |
download | talos-op-linux-1dfba3060fe7ee03ccec25a91d35085142dfc295.tar.gz talos-op-linux-1dfba3060fe7ee03ccec25a91d35085142dfc295.zip |
libertas: move firmware lifetime handling to firmware.c
Previously, each bus type was responsible for freeing the firmware
structure, but some did that badly. Move responsibility for freeing
firmware into firmware.c so that it's done once and correctly, instead
of happening in multiple places in bus-specific code.
This fixes a use-after-free bug found by Dr. H. Nikolaus Schaller where
the SDIO code forgot to NULL priv->helper_fw after freeing it.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions