]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Assert INTOFF rather than applying it in ck*
authorjilles <jilles@FreeBSD.org>
Tue, 28 Apr 2020 20:34:27 +0000 (20:34 +0000)
committerjilles <jilles@FreeBSD.org>
Tue, 28 Apr 2020 20:34:27 +0000 (20:34 +0000)
commit0b1d4f866032ee2113fca439452bac1facafbf25
tree282d94b4d469f89ba4cd68c94da01fff9e7c2dd0
parentba5c497845e72f2e2bc897ca4897d0fc918f4447
sh: Assert INTOFF rather than applying it in ck*

As I noted in https://reviews.freebsd.org/D22756, INTOFF should be in effect
when calling ckmalloc/ckrealloc/ckfree to avoid memory leaks and double
frees. Therefore, change the functions to check if INTOFF is in effect
instead of applying it.

Reviewed by: bdrewery
Differential Revision: https://reviews.freebsd.org/D24599
bin/sh/memalloc.c