]> git.karo-electronics.de Git - karo-tx-linux.git/commit
btrfs: don't dereference extent_mapping if NULL
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 24 Oct 2011 14:53:36 +0000 (01:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 7 Nov 2011 02:40:18 +0000 (13:40 +1100)
commitce788bc83e31eb0b84df57a38ae86495227af0bc
treef530c4ec6fa3d0c32b2370a507e729bbdff903d1
parent2d461b54e37cd3f2b53f5856aafcb02d813785e0
btrfs: don't dereference extent_mapping if NULL

Don't dereference em if it's NULL or an error pointer.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/btrfs/inode.c