From: Josef Bacik Date: Fri, 31 May 2013 17:04:36 +0000 (-0400) Subject: Btrfs: init relocate extent_io_tree with a mapping X-Git-Tag: v3.10-rc6~9^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9995eece39a0630ebbfc1ab38570bce6c8a8f5b;p=pandora-kernel.git Btrfs: init relocate extent_io_tree with a mapping Dave reported a NULL pointer deref. This is caused because he thought he'd be smart and add sanity checks to the extent_io bit operations, but he didn't expect a tree to have a NULL mapping. To fix this we just need to init the relocation's processed_blocks with the btree_inode->i_mapping. Thanks, Reported-by: David Sterba Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed