[3.0-stable PATCH 04/36] xfs: xfs_trans_add_item() - dont assign in ASSERT() when compare is intended

Dave Chinner david at fromorbit.com
Tue Dec 11 17:33:05 CST 2012


On Mon, Dec 03, 2012 at 05:42:12PM -0600, Mark Tinguely wrote:
> From: Jesper Juhl <jj at chaosbits.net>
> 
> Upstream commit: f65020a83ad570c1788f7d8ece67f3487166576b
> 
> It looks to me like the two ASSERT()s in xfs_trans_add_item() really
> want to do a compare (==) rather than assignment (=).
> This patch changes it from the latter to the former.
> 
> Signed-off-by: Jesper Juhl <jj at chaosbits.net>
> Signed-off-by: Ben Myers <bpm at sgi.com>
> 
> (cherry picked from commit 05293485a0b6b1f803e8a3c0ff188c38f6969985)

Only affects debug builds, and isn't a bug that would cause any
problems at all, so it is really necessary?

Cheers,

Dave.
-- 
Dave Chinner
david at fromorbit.com



More information about the xfs mailing list