aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorLoic Pallardy <[email protected]>2019-01-10 13:49:06 +0000
committerBjorn Andersson <[email protected]>2019-02-21 05:34:18 +0000
commit74457c40f97a98142bb13153395d304ad3c85cdd (patch)
tree9b3d4485f0c0b7d27c4cc2b91ffa89608791048d /drivers/fpga/fpga-mgr.c
parentremoteproc: correct rproc_mem_entry_init() comments (diff)
downloadkernel-74457c40f97a98142bb13153395d304ad3c85cdd.tar.gz
kernel-74457c40f97a98142bb13153395d304ad3c85cdd.zip
remoteproc: fix rproc_da_to_va in case of unallocated carveout
With introduction of rproc_alloc_registered_carveouts() which delays carveout allocation just before the start of the remote processor, rproc_da_to_va() could be called before all carveouts are allocated. This patch adds a check in rproc_da_to_va() to return NULL if carveout is not allocated. Fixes: d7c51706d095 ("remoteproc: add alloc ops in rproc_mem_entry struct") Signed-off-by: Loic Pallardy <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions