mac_ddb: Fix the show rman validator.

The validator always returned true due to an incorrect check.

Reviewed by:	mhorne, imp
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D36125
This commit is contained in:
John Baldwin 2022-08-12 10:20:05 -07:00
parent 6b3ad1d737
commit 3a3af6b2a1

View File

@ -185,7 +185,7 @@ db_show_rman_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
struct rman *rm;
TAILQ_FOREACH(rm, &rman_head, rm_link) {
if ((void *)rm == (void *)rm)
if ((void *)rm == (void *)addr)
return (0);
}