]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
soc: qcom: cmd-db: Fix an error code in cmd_db_dev_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Feb 2019 05:48:49 +0000 (08:48 +0300)
committerAndy Gross <andy.gross@linaro.org>
Thu, 28 Mar 2019 04:32:26 +0000 (23:32 -0500)
commit93b260528020792032e50725383f27a27897bb0f
treebfe3de25efa01f6791b153fe9d6b0078b0826f87
parent9324df5817c01f55fcde24da0da9df2c2f9392ac
soc: qcom: cmd-db: Fix an error code in cmd_db_dev_probe()

The memremap() function doesn't return error pointers, it returns NULL.
This code is returning "ret = PTR_ERR(NULL);" which is success, but it
should return -ENOMEM.

Fixes: 312416d9171a ("drivers: qcom: add command DB driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/cmd-db.c