]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/genalloc.c
dell-laptop: fix a use-after-free error on the failure path
[mirror_ubuntu-bionic-kernel.git] / lib / genalloc.c
index f6d276db2d58f97c80db2b0aececde84120893a9..eed2bdb865e76673bfe24834301de8406d9cfc88 100644 (file)
@@ -85,7 +85,6 @@ void gen_pool_destroy(struct gen_pool *pool)
        int bit, end_bit;
 
 
-       write_lock(&pool->lock);
        list_for_each_safe(_chunk, _next_chunk, &pool->chunks) {
                chunk = list_entry(_chunk, struct gen_pool_chunk, next_chunk);
                list_del(&chunk->next_chunk);