]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/remoteproc/remoteproc_core.c
remoteproc: Keep local copy of firmware name
authorMatt Redfearn <matt.redfearn@imgtec.com>
Mon, 17 Oct 2016 15:48:58 +0000 (16:48 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 18 Oct 2016 22:03:35 +0000 (15:03 -0700)
commit0f57dc6ae1ff0c702450083176b657ba37c07363
tree280b82042a08c02dbb0622830d55ac2434fbdb89
parent1001354ca34179f3db924eb66672442a173147dc
remoteproc: Keep local copy of firmware name

Storage of the firmware name was inconsistent, either storing a pointer
to a name stored with unknown ownership, or a variable length tacked
onto the end of the struct proc allocated in rproc_alloc.

In preparation for allowing the firmware of an already allocated struct
rproc to be changed, instead always keep a locally maintained copy of
the firmware name.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h