Loading drivers/soc/qcom/mem-buf.c +2 −2 Original line number Diff line number Diff line Loading @@ -992,7 +992,7 @@ static int mem_buf_map_mem_s1(struct hh_sgl_desc *sgl_desc) u64 base, size; struct mhp_restrictions restrictions = {}; if (!sgl_desc) if (!sgl_desc || !sgl_desc->n_sgl_entries) return -EINVAL; pr_debug("%s: Creating CPU MMU stage 1 mappings\n", __func__); Loading Loading @@ -1048,7 +1048,7 @@ static int mem_buf_unmap_mem_s1(struct hh_sgl_desc *sgl_desc) unsigned int i, nid; u64 base, size; if (!sgl_desc) if (!sgl_desc || !sgl_desc->n_sgl_entries) return -EINVAL; pr_debug("%s: Removing CPU MMU stage 1 mappings\n", __func__); Loading Loading
drivers/soc/qcom/mem-buf.c +2 −2 Original line number Diff line number Diff line Loading @@ -992,7 +992,7 @@ static int mem_buf_map_mem_s1(struct hh_sgl_desc *sgl_desc) u64 base, size; struct mhp_restrictions restrictions = {}; if (!sgl_desc) if (!sgl_desc || !sgl_desc->n_sgl_entries) return -EINVAL; pr_debug("%s: Creating CPU MMU stage 1 mappings\n", __func__); Loading Loading @@ -1048,7 +1048,7 @@ static int mem_buf_unmap_mem_s1(struct hh_sgl_desc *sgl_desc) unsigned int i, nid; u64 base, size; if (!sgl_desc) if (!sgl_desc || !sgl_desc->n_sgl_entries) return -EINVAL; pr_debug("%s: Removing CPU MMU stage 1 mappings\n", __func__); Loading