Author: markj
Date: Tue Feb 4 20:00:45 2020
New Revision: 357525
URL: https://svnweb.freebsd.org/changeset/base/357525
Log:
Correct the malloc tag used when freeing the temporary semop(2) buffer.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/kern/sysv_sem.c
Modified: head/sys/kern/sysv_sem.c
==============================================================================
--- head/sys/kern/sysv_sem.c Tue Feb 4 19:51:26 2020 (r357524)
+++ head/sys/kern/sysv_sem.c Tue Feb 4 20:00:45 2020 (r357525)
@@ -1142,7 +1142,7 @@ sys_semop(struct thread *td, struct semop_args *uap)
DPRINTF(("error = %d from copyin(%p, %p, %d)\n", error,
uap->sops, sops, nsops * sizeof(sops[0])));
if (sops != small_sops)
- free(sops, M_SEM);
+ free(sops, M_TEMP);
return (error);
}
@@ -1393,7 +1393,7 @@ done:
done2:
mtx_unlock(sema_mtxp);
if (sops != small_sops)
- free(sops, M_SEM);
+ free(sops, M_TEMP);
return (error);
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"