linux-stable/drivers/hwspinlock
Baolin Wang ddb34f480d hwspinlock: Fix incorrect return pointers
The commit 4f1acd758b ("hwspinlock: Add devm_xxx() APIs to request/free
hwlock") introduces one bug, that will return one error pointer if failed
to request one hwlock, but we expect NULL pointer on error for consumers.
This patch will fix this issue.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-07-30 20:54:51 -07:00
..
hwspinlock_core.c hwspinlock: Fix incorrect return pointers 2018-07-30 20:54:51 -07:00
hwspinlock_internal.h hwspinlock/core: Switch to SPDX license identifier 2018-05-24 12:04:32 -07:00
Kconfig hwspinlock/core: Switch to SPDX license identifier 2018-05-24 12:04:32 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
omap_hwspinlock.c hwspinlock updates for v4.18 2018-06-11 12:09:19 -07:00
qcom_hwspinlock.c hwspinlock: qcom: Switch to SPDX license identifier 2018-05-24 12:04:46 -07:00
sirf_hwspinlock.c hwspinlock updates for v4.18 2018-06-11 12:09:19 -07:00
sprd_hwspinlock.c hwspinlock: sprd: Switch to SPDX license identifier 2018-05-24 12:04:48 -07:00
u8500_hsem.c hwspinlock updates for v4.18 2018-06-11 12:09:19 -07:00