diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2021-11-22 10:17:15 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2021-11-22 10:17:15 +0000 |
commit | 7887ecafda8fd837c86a09537c8aea50710e072c (patch) | |
tree | bf2501eaedbb29a8d6eb1ed016bd705becad829d /sys/dev/usb/umass_scsi.c | |
parent | 8caef5c8e6f0f856a27089be5b393af9658e722a (diff) |
Align memory allocation for USB device drivers and USB HC drivers:
* USB device drivers use M_USBDEV instead of M_DEVBUF.
* USB HC drivers use M_USBHC instead of M_DEVBUF.
In a vanilla setup, this enlarges the USB memory pool.
ok anton@
Diffstat (limited to 'sys/dev/usb/umass_scsi.c')
-rw-r--r-- | sys/dev/usb/umass_scsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/umass_scsi.c b/sys/dev/usb/umass_scsi.c index b3157c41eec..68956780229 100644 --- a/sys/dev/usb/umass_scsi.c +++ b/sys/dev/usb/umass_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umass_scsi.c,v 1.61 2020/09/22 19:32:53 krw Exp $ */ +/* $OpenBSD: umass_scsi.c,v 1.62 2021/11/22 10:17:14 mglocker Exp $ */ /* $NetBSD: umass_scsipi.c,v 1.9 2003/02/16 23:14:08 augustss Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -84,7 +84,7 @@ umass_scsi_attach(struct umass_softc *sc) struct umass_scsi_softc *scbus; u_int16_t flags = 0; - scbus = malloc(sizeof(*scbus), M_DEVBUF, M_WAITOK | M_ZERO); + scbus = malloc(sizeof(*scbus), M_USBDEV, M_WAITOK | M_ZERO); sc->bus = scbus; @@ -136,7 +136,7 @@ umass_scsi_detach(struct umass_softc *sc, int flags) if (scbus != NULL) { if (scbus->sc_child != NULL) rv = config_detach(scbus->sc_child, flags); - free(scbus, M_DEVBUF, sizeof(*scbus)); + free(scbus, M_USBDEV, sizeof(*scbus)); sc->bus = NULL; } |