remoteproc: qcom: replace kstrdup with kstrndup
authorMukesh Ojha <quic_mojha@quicinc.com>
Tue, 14 Feb 2023 14:08:11 +0000 (19:38 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 14 Feb 2023 16:21:01 +0000 (08:21 -0800)
commit9d5b9ad97f83b2390a6006eeb5ae5e48ec4298ce
treed0c0760a1eca14bec9fe14aca79dcd3a0fe0060d
parent640587182066f75d3e8b62522685041f00ffbbbb
remoteproc: qcom: replace kstrdup with kstrndup

Since, there is no guarantee that region.name will be 0-terminated
from the firmware side, replace kstrdup with kstrndup.

Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/1676383691-29738-1-git-send-email-quic_mojha@quicinc.com
drivers/remoteproc/qcom_common.c