remoteproc: Only update table_ptr if we have a loaded table
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 10 Aug 2016 18:57:03 +0000 (11:57 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 18 Aug 2016 19:33:20 +0000 (12:33 -0700)
commit13c4245b53aca55ee523e1731c247d3d19d070fa
tree46b2781eb48afc3b92ebc0483b0537cf00cf416f
parent988d204cdaf604c59316dadb98eba2da2188b762
remoteproc: Only update table_ptr if we have a loaded table

In the case that we have a resource table, but not a loaded one we
should leave the table_ptr intact, as subsequent resource handling could
otherwise dereference the NULL pointer.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c