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)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 6 Oct 2018 06:04:20 +0000 (23:04 -0700)
commitfaeadbb64094757150a8c2a3175ca418dbdd472c
tree9644cf26f3e593b01d8406477aa7a53b413615c0
parent29a5f9aaf9d365c46f1f9058375061a51ccea4a2
remoteproc: Check for NULL firmwares in sysfs interface

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>
drivers/remoteproc/remoteproc_sysfs.c