]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
remoteproc: Check for NULL firmwares in sysfs interface
authorSuman Anna <s-anna@ti.com>
Sat, 15 Sep 2018 00:37:22 +0000 (19:37 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
commit91ac74198e7bd7a228a844267857783295da3b11
tree42d8c7703ff904dd728e1703348fae8ff14b9dfc
parentc1bbd2df4e979b494ab09900d4bd3fe5fac9cc13
remoteproc: Check for NULL firmwares in sysfs interface

BugLink: https://bugs.launchpad.net/bugs/1854216
[ Upstream commit faeadbb64094757150a8c2a3175ca418dbdd472c ]

The remoteproc framework provides a sysfs file 'firmware'
for modifying the firmware image name from userspace. Add
an additional check to ensure NULL firmwares are errored
out right away, rather than getting a delayed error while
requesting a firmware during the start of a remoteproc
later on.

Tested-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/remoteproc/remoteproc_sysfs.c