diff --git a/binder/binder_alloc.c b/binder/binder_alloc.c index 45c2c56..9afc7bb 100644 --- a/binder/binder_alloc.c +++ b/binder/binder_alloc.c @@ -1003,6 +1003,10 @@ enum lru_status binder_alloc_free_page(struct list_head *item, size_t index; struct vm_area_struct *vma; + /* Since 6.13 the list_lru callback gets no lock; it lives in lru. */ + if (!lock) + lock = &lru->lock; + alloc = page->alloc; if (!mutex_trylock(&alloc->mutex)) goto err_get_alloc_mutex_failed;