public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* typo in jbd2_journal_begin_ordered_truncate()
@ 2009-02-03  8:23 Dan Carpenter
  2009-02-03  8:33 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Carpenter @ 2009-02-03  8:23 UTC (permalink / raw)
  To: sct, akpm; +Cc: linux-ext4

This is jbd2_journal_begin_ordered_truncate() from fs/jbd2/transaction.c.

I think the "&&" is supposed to be an "||" on line 2144.  Just knowing 
that inode->i_transaction is NULL should be enough, otherwise we would 
immediately dereference a null on line 2146.

   2144          if (!inode->i_transaction && !inode->i_next_transaction)
   2145                  goto out;
   2146          journal = inode->i_transaction->t_journal;

regards,
dan carpenter



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-03 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03  8:23 typo in jbd2_journal_begin_ordered_truncate() Dan Carpenter
2009-02-03  8:33 ` Andrew Morton
2009-02-03  9:02   ` Dan Carpenter
2009-02-03 14:23   ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox