projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: dwc3: rockchip: fix possible circular deadlock
[firefly-linux-kernel-4.4.55.git]
/
mm
/
list_lru.c
diff --git
a/mm/list_lru.c
b/mm/list_lru.c
index afc71ea9a381f853faf65a05edc7f411a378d7e5..5d8dffd5b57c83575b2daf4b9ded58b63c5c6f6e 100644
(file)
--- a/
mm/list_lru.c
+++ b/
mm/list_lru.c
@@
-554,6
+554,8
@@
int __list_lru_init(struct list_lru *lru, bool memcg_aware,
err = memcg_init_list_lru(lru, memcg_aware);
if (err) {
kfree(lru->node);
+ /* Do this so a list_lru_destroy() doesn't crash: */
+ lru->node = NULL;
goto out;
}