]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: set b_ops to NULL in set_cur for types without verifiers
authorEric Sandeen <sandeen@redhat.com>
Thu, 27 Aug 2020 17:57:16 +0000 (13:57 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 27 Aug 2020 17:57:16 +0000 (13:57 -0400)
commit2cf166bca8a239271ea6386f8eeea1551fef0e50
treeec3c8e6babae0902de547f050cd666bc3823ed4a
parent84f1e8a05d3e41b9ad6916dcee937458299e93b4
xfs_db: set b_ops to NULL in set_cur for types without verifiers

If we are using set_cur() to set a type that has no verifier ops,
be sure to set b_ops to NULL so that the old verifiers don't run
against the buffer anymore, which may have changed size.

Fixes: cdabe556 ("xfs_db: consolidate set_iocur_type behavior")
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/io.c