Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / jbd-stats-2.6-sles10.patch
index 2660339..acd81f8 100644 (file)
@@ -269,7 +269,7 @@ Index: linux-2.6.16.46-0.14/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;
 +      }
@@ -369,7 +369,7 @@ Index: linux-2.6.16.46-0.14/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;
 +      }