From 58e0a812631eac5c3dee3a9bf82328bc54aadf4c Mon Sep 17 00:00:00 2001
From: adilger <adilger>
Date: Wed, 4 Jul 2007 20:05:53 +0000
Subject: [PATCH] Branch b1_6 Fix check for s->history allocation NULL return.
 b=11039 i=alex

---
 ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6-fc5.patch     | 2 +-
 ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.12.patch      | 2 +-
 ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.9-rhel4.patch | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6-fc5.patch b/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6-fc5.patch
index 90a9123f72..1964a6a756 100644
--- a/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6-fc5.patch
+++ b/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6-fc5.patch
@@ -2068,7 +2068,7 @@ Index: linux-2.6.16.i686/fs/ext3/mballoc.c
 +		return -EIO;
 +	size = sizeof(struct ext3_mb_history) * sbi->s_mb_history_max;
 +	s->history = kmalloc(size, GFP_KERNEL);
-+	if (s == NULL) {
++	if (s->history == NULL) {
 +		kfree(s);
 +		return -EIO;
 +	}
diff --git a/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.12.patch b/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.12.patch
index 135262a0ff..ad077145da 100644
--- a/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.12.patch
+++ b/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.12.patch
@@ -2067,7 +2067,7 @@ Index: linux-2.6.12.6-bull/fs/ext3/mballoc.c
 +		return -EIO;
 +	size = sizeof(struct ext3_mb_history) * sbi->s_mb_history_max;
 +	s->history = kmalloc(size, GFP_KERNEL);
-+	if (s == NULL) {
++	if (s->history == NULL) {
 +		kfree(s);
 +		return -EIO;
 +	}
diff --git a/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.9-rhel4.patch b/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.9-rhel4.patch
index 4512098da5..f80b66e83e 100644
--- a/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.9-rhel4.patch
+++ b/ldiskfs/kernel_patches/patches/ext3-mballoc2-2.6.9-rhel4.patch
@@ -2086,7 +2086,7 @@ Index: linux-2.6.9-full/fs/ext3/mballoc.c
 +		return -EIO;
 +	size = sizeof(struct ext3_mb_history) * sbi->s_mb_history_max;
 +	s->history = kmalloc(size, GFP_KERNEL);
-+	if (s == NULL) {
++	if (s->history == NULL) {
 +		kfree(s);
 +		return -EIO;
 +	}
-- 
GitLab