[patch] filemap: add missing unlock_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Unlock and release page before returning error.

Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
---

--- a/mm/filemap.c	Mon Sep  9 15:51:28 2013
+++ b/mm/filemap.c	Mon Sep  9 15:52:54 2013
@@ -1844,6 +1844,7 @@ retry:
 	}
 	err = filler(data, page);
 	if (err < 0) {
+		unlock_page(page);
 		page_cache_release(page);
 		return ERR_PTR(err);
 	}
--?韬{.n?壏?檩jg??a旃??迻)钋?韰骅w+h櫒璀?y/i?⒏?婃⒎?湼Щ烚m???)钋?痂燐^櫒?觥櫒ザ?v夗﨣趓O璁?f?i?⒏?




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]