]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b1498e76e520e38a581f88ff0250032863bd357
tree3231df34cf7dd872422a9191fc4b1430cff6927c
parent40fa96677bbb11dd0c28dca3c6e5c53f5923a873
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