diff options
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | 2012-10-01 05:08:37 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-09 09:15:42 -0400 |
commit | f0bd95ea72644cbf9210606f6f8edfce13d65d47 (patch) | |
tree | 1d0c37da707984971f14f48966b40d5c86ea63ee /fs/btrfs/inode.c | |
parent | 18ec90d63f43cf785f6e73e7a7db546bff3fa380 (diff) |
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: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d24b65014612..f92def2467a6 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -5505,7 +5505,8 @@ insert: | |||
5505 | write_unlock(&em_tree->lock); | 5505 | write_unlock(&em_tree->lock); |
5506 | out: | 5506 | out: |
5507 | 5507 | ||
5508 | trace_btrfs_get_extent(root, em); | 5508 | if (em) |
5509 | trace_btrfs_get_extent(root, em); | ||
5509 | 5510 | ||
5510 | if (path) | 5511 | if (path) |
5511 | btrfs_free_path(path); | 5512 | btrfs_free_path(path); |