]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79eff2b7e530807d9951b2d133731cd9b74f4a03
tree280b82042a08c02dbb0622830d55ac2434fbdb89
parenta245803230f587f66ceddc152f3504b2a960aac2
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