commit | 91ca338d776e0cefb255bf2979b6448febd880f5 | [log] [tgz] |
---|---|---|
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | Wed Jan 05 02:32:22 2011 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Sun Jan 16 11:30:20 2011 -0500 |
tree | 5d1d344d6ed565faf5612b5c695f00c04e6f01d8 | |
parent | ff175d57f057f77d2d3031d674c2af9167a4af02 [diff] [blame] |
btrfs: check NULL or not Should check if functions returns NULL or not. Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index f1d1981..8b8d3d9 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c
@@ -3075,6 +3075,8 @@ #endif eb = kmem_cache_zalloc(extent_buffer_cache, mask); + if (eb == NULL) + return NULL; eb->start = start; eb->len = len; spin_lock_init(&eb->lock);