Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0bd95ea authored by Tsutomu Itoh's avatar Tsutomu Itoh Committed by Chris Mason
Browse files

Btrfs: confirmation of value is added before trace_btrfs_get_extent() is called



We should confirm the value of extent_map before calling
trace_btrfs_get_extent() because the value of extent_map has the
possibility of NULL.

Signed-off-by: default avatarTsutomu Itoh <t-itoh@jp.fujitsu.com>
parent 18ec90d6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5505,6 +5505,7 @@ struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page,
	write_unlock(&em_tree->lock);
out:

	if (em)
		trace_btrfs_get_extent(root, em);

	if (path)