diff options
| author | Baolin Wang <[email protected]> | 2018-06-28 02:32:21 +0000 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2018-07-31 03:54:51 +0000 |
| commit | ddb34f480d1b8051bc18e6ff22e93a6c9a33f94f (patch) | |
| tree | c34af11c5e0a134259a63c3ae10f56203dc21e31 /lib/bitmap.c | |
| parent | spi: sprd: Change to use devm_hwspin_lock_request_specific() (diff) | |
| download | kernel-ddb34f480d1b8051bc18e6ff22e93a6c9a33f94f.tar.gz kernel-ddb34f480d1b8051bc18e6ff22e93a6c9a33f94f.zip | |
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 <[email protected]>
Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
