]> git.dujemihanovic.xyz Git - u-boot.git/commit
soc: qcom: cmd-db: use strncmp() instead of memcmp()
authorCaleb Connolly <caleb.connolly@linaro.org>
Thu, 8 Aug 2024 23:59:32 +0000 (01:59 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Fri, 6 Sep 2024 08:47:46 +0000 (10:47 +0200)
commit75acc51189117b9c42232d0ea5c75cf72e39a4d8
tree2933011b23b3345a6079d4371b8db2b342c255fb
parent9f2d4561465b42f8cdc478ea5df44b93e12a90d9
soc: qcom: cmd-db: use strncmp() instead of memcmp()

memcmp() can cause aborts on some platforms and generally seems to be
the wrong approach here. Use strncmp() instead which is more correct.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/soc/qcom/cmd-db.c