From: Li Zefan Date: Wed, 16 Feb 2011 06:06:41 +0000 (+0000) Subject: Btrfs: Avoid accessing unmapped kernel address X-Git-Tag: v2.6.38-rc7~30^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca9b688c1c9a21635cfc8af8b68565b154185196;p=pandora-kernel.git Btrfs: Avoid accessing unmapped kernel address When decompressing a chunk of data, we'll copy the data out to a working buffer if the data is stored in more than one page, otherwise we'll use the mapped page directly to avoid memory copy. In the latter case, we'll end up accessing the kernel address after we've unmapped the page in a corner case. Reported-by: Juan Francisco Cantero Hurtado Signed-off-by: Li Zefan Signed-off-by: Chris Mason --- Reading git-diff-tree failed