Commit 4a6fdb2d authored by Hugh Dickins's avatar Hugh Dickins Committed by Linus Torvalds

[PATCH] shmem_getpage_locked missing unlock

Dawson Engler's Stanford Checker reported this missing unlock to
LKML 11 July (amongst "56 potential lock/unlock bugs in 2.5.8").
parent ee9e4c9c
......@@ -605,6 +605,7 @@ static struct page * shmem_getpage_locked(struct shmem_inode_info *info, struct
}
error = move_from_swap_cache(page, idx, mapping);
if (error < 0) {
spin_unlock(&info->lock);
unlock_page(page);
page_cache_release(page);
return ERR_PTR(error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment