soc: qcom: rmtfs-mem: Validate that scm is available
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 28 Aug 2018 05:05:48 +0000 (22:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:55 +0000 (11:08 -0800)
commit7f9a150f91b668c6bab1af0c60e6bfada46de388
treef078399a18f95971e6f2dc627b8022b03b8512b8
parent142261e7b90849a5bdc039d71ae4401ee26fe13e
soc: qcom: rmtfs-mem: Validate that scm is available

commit 137dc5843faeacabf48fc22a8dc58c4e0b4f0927 upstream.

The scm device must be present in order for the rmtfs driver to
configure memory permissions for the rmtfs memory region, so check that
it is probed before continuing.

Cc: stable@vger.kernel.org
Fixes: fa65f8045137 ("soc: qcom: rmtfs-mem: Add support for assigning memory to remote")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/qcom/rmtfs_mem.c