forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/include/linux/timerqueue.h
....@@ -35,7 +35,7 @@
3535 {
3636 struct rb_node *leftmost = rb_first_cached(&head->rb_root);
3737
38
- return rb_entry(leftmost, struct timerqueue_node, node);
38
+ return rb_entry_safe(leftmost, struct timerqueue_node, node);
3939 }
4040
4141 static inline void timerqueue_init(struct timerqueue_node *node)