projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: SOF: ipc4-loader: remove the CPC check warnings
[platform/kernel/linux-starfive.git]
/
lib
/
idr.c
diff --git
a/lib/idr.c
b/lib/idr.c
index
13f2758
..
da36054
100644
(file)
--- a/
lib/idr.c
+++ b/
lib/idr.c
@@
-508,7
+508,7
@@
void ida_free(struct ida *ida, unsigned int id)
goto delete;
xas_store(&xas, xa_mk_value(v));
} else {
- if (!test_bit(bit, bitmap->bitmap))
+ if (!
bitmap || !
test_bit(bit, bitmap->bitmap))
goto err;
__clear_bit(bit, bitmap->bitmap);
xas_set_mark(&xas, XA_FREE_MARK);