shared_shadow_inval_test: fix copy-pasto in error message

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Eric van Gyzen 2022-08-24 12:59:48 -05:00
parent c46697b9cb
commit 3b0f105ce3

View File

@ -203,7 +203,7 @@ child(struct shared_state *ss, int depth)
child_write(ss, mypid, ss->len);
if (!ss->lazy_cow) {
if (mlock(ss->p, ss->len) == -1)
child_err("mprotect");
child_err("mlock");
if (mprotect(ss->p, ss->len, PROT_READ) == -1)
child_err("mprotect");
}