remoteproc: qcom: mdt_loader: Don't overwrite firmware object

commit 3e8b571a9a 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: 051fb70fd4 ("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>
This commit is contained in:
Bjorn Andersson 2017-01-27 02:06:36 -08:00 • committed by Greg Kroah-Hartman
commit 24d77f99a7