xfs: fix possible NULL dereference in xlog_verify_iclog
authorGeyslan G. Bem <geyslan@gmail.com>
Wed, 30 Oct 2013 21:01:00 +0000 (16:01 -0500)
committerBen Myers <bpm@sgi.com>
Wed, 30 Oct 2013 21:01:00 +0000 (16:01 -0500)
commit643f7c4e5656bd18c769211f933190f7bb738245
tree3231df34cf7dd872422a9191fc4b1430cff6927c
parent5bf1f439c89d4653f8cc8f8aa303e0d6991aba4b
xfs: fix possible NULL dereference in xlog_verify_iclog

In xlog_verify_iclog a debug check of the incore log buffers prints an
error if icptr is null and then goes on to dereference the pointer
regardless.  Convert this to an assert so that the intention is clear.
This was reported by Coverty.

Signed-off-by: Ben Myers <bpm@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/xfs_log.c