projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ksmbd: fix control flow issues in sid_to_id()
[linux-2.6-microblaze.git]
/
lib
/
debugobjects.c
diff --git
a/lib/debugobjects.c
b/lib/debugobjects.c
index
9e14ae0
..
6946f8e
100644
(file)
--- a/
lib/debugobjects.c
+++ b/
lib/debugobjects.c
@@
-557,7
+557,12
@@
__debug_object_init(void *addr, const struct debug_obj_descr *descr, int onstack
struct debug_obj *obj;
unsigned long flags;
struct debug_obj *obj;
unsigned long flags;
- fill_pool();
+ /*
+ * On RT enabled kernels the pool refill must happen in preemptible
+ * context:
+ */
+ if (!IS_ENABLED(CONFIG_PREEMPT_RT) || preemptible())
+ fill_pool();
db = get_bucket((unsigned long) addr);
db = get_bucket((unsigned long) addr);