Commit 9af76725 authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Jiri Slaby
Browse files

xfs: fix possible NULL dereference in xlog_verify_iclog



commit 643f7c4e upstream.

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: default avatarBen Myers <bpm@sgi.com>
Reviewed-by: default avatarEric Sandeen <sandeen@redhat.com>

Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 71024660
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment