summaryrefslogtreecommitdiff
path: root/drivers/md/raid5-cache.c
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2018-06-28 05:32:21 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-07-31 06:54:51 +0300
commitddb34f480d1b8051bc18e6ff22e93a6c9a33f94f (patch)
treec34af11c5e0a134259a63c3ae10f56203dc21e31 /drivers/md/raid5-cache.c
parentc8d049896729423a979d2838175d251b9cfee3b5 (diff)
downloadlinux-ddb34f480d1b8051bc18e6ff22e93a6c9a33f94f.tar.xz
hwspinlock: Fix incorrect return pointers
The commit 4f1acd758b08 ("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>
Diffstat (limited to 'drivers/md/raid5-cache.c')
0 files changed, 0 insertions, 0 deletions