From: Dan Williams Date: Mon, 14 Oct 2013 22:51:55 +0000 (-0500) Subject: libertas: move firmware lifetime handling to firmware.c X-Git-Tag: v3.13-rc1~105^2~55^2^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dfba3060fe7ee03ccec25a91d35085142dfc295;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed