Whamcloud - gitweb
b=13454
[fs/lustre-release.git] / lustre / kernel_patches / patches / jbd-stats-2.6.9.patch
index 3847e1e..0140efd 100644 (file)
@@ -460,7 +460,7 @@ Index: linux-2.6.9/fs/jbd/journal.c
 +              return -EIO;
 +      size = sizeof(struct transaction_stats_s) * journal->j_history_max;
 +      s->stats = kmalloc(size, GFP_KERNEL);
-+      if (s == NULL) {
++      if (s->stats == NULL) {
 +              kfree(s);
 +              return -EIO;
 +      }
@@ -560,7 +560,7 @@ Index: linux-2.6.9/fs/jbd/journal.c
 +              return -EIO;
 +      size = sizeof(struct transaction_stats_s);
 +      s->stats = kmalloc(size, GFP_KERNEL);
-+      if (s == NULL) {
++      if (s->stats == NULL) {
 +              kfree(s);
 +              return -EIO;
 +      }