Btrfs: avoid null deref in unpin_extent_cache()
authorDan Carpenter <error27@gmail.com>
Tue, 10 Nov 2009 09:01:43 +0000 (09:01 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 11 Nov 2009 19:20:18 +0000 (14:20 -0500)
commit4eb3991c5def39bcf553c14ebe2618fcb47b627f
tree9c35f532bd29e68014cc16dc6e528a8cca5cfe34
parentdf66916e71231e9f2377cac9c5c1e2d190f9a427
Btrfs: avoid null deref in unpin_extent_cache()

I re-orderred the checks to avoid dereferencing "em" if it was null.

Found by smatch static checker.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_map.c