]> git.hungrycats.org Git - linux/commit
remoteproc: qcom: mdt_loader: Don't overwrite firmware object
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 27 Jan 2017 10:06:36 +0000 (02:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:44:18 +0000 (06:44 +0100)
commit28cd8db6a715f55d4e4d924afc34f44b8bedfa7d
tree42a45bdb64067d4320ebe309d95a70d418428e0d
parent8e2b7672b43e7fd7758c8285598d2b9670cede79
remoteproc: qcom: mdt_loader: Don't overwrite firmware object

commit 3e8b571a9a0881ba3381ca0915995696da145ab8 upstream.

The "fw" firmware object is passed from the remoteproc core and should
not be overwritten, as that results in leaked buffers and a double free
of the the last firmware object.

Fixes: 051fb70fd4ea ("remoteproc: qcom: Driver for the self-authenticating Hexagon v5")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/remoteproc/qcom_mdt_loader.c