diff options
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 2a9ee046573..299433419de 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.170 2014/09/14 14:17:25 jsg Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.171 2014/11/03 03:08:00 deraadt Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -1139,7 +1139,7 @@ disk_detach(struct disk *diskp) /* * Free the space used by the disklabel structures. */ - free(diskp->dk_label, M_DEVBUF, 0); + free(diskp->dk_label, M_DEVBUF, sizeof(*diskp->dk_label)); /* * Remove from the disklist. |