remoteproc: fix missing fault indication in error-path
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Sun, 10 Jun 2012 11:37:51 +0000 (14:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jun 2012 18:37:16 +0000 (11:37 -0700)
commit6582db31eb1e89ef6b08242a16a781849dada810
treedc7e5442319fb9455ef7fae8bfcc3385262efaa0
parentd186a40464141d201f93ee87e0be6f0d2ef029d6
remoteproc: fix missing fault indication in error-path

commit 30338cf09f82523d8747670f7363cc8af347c79f upstream.

If rproc_find_rsc_table() fails, rproc_fw_boot() must set
return-value before jumping to clean_up label. Otherwise no
error value is returned.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/remoteproc/remoteproc_core.c