mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
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:
parent
6b3ad1d737
commit
3a3af6b2a1
@ -185,7 +185,7 @@ db_show_rman_valid(db_expr_t addr, bool have_addr, db_expr_t count, char *modif)
|
|||||||
struct rman *rm;
|
struct rman *rm;
|
||||||
|
|
||||||
TAILQ_FOREACH(rm, &rman_head, rm_link) {
|
TAILQ_FOREACH(rm, &rman_head, rm_link) {
|
||||||
if ((void *)rm == (void *)rm)
|
if ((void *)rm == (void *)addr)
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user