diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2007-05-26 17:06:37 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2007-05-26 17:06:37 +0000 |
commit | 1afb44c84e02ea7b687853df5e4e93093298a295 (patch) | |
tree | 5e3effa6f34ae02103ee4d3010db2870581bbb8c /sys/dev/sdmmc/sdmmc.c | |
parent | df01d77ef42f3d4596f2183ed912e70258cbd9bd (diff) |
Use M_TEMP, not M_DEVBUF for temporary memory
Diffstat (limited to 'sys/dev/sdmmc/sdmmc.c')
-rw-r--r-- | sys/dev/sdmmc/sdmmc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/sdmmc.c b/sys/dev/sdmmc/sdmmc.c index 784b2832a4f..2de1084d913 100644 --- a/sys/dev/sdmmc/sdmmc.c +++ b/sys/dev/sdmmc/sdmmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc.c,v 1.10 2007/03/24 00:44:26 uwe Exp $ */ +/* $OpenBSD: sdmmc.c,v 1.11 2007/05/26 17:06:36 uwe Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -687,7 +687,7 @@ sdmmc_ioctl(struct device *self, u_long request, caddr_t addr) cmd.c_blklen = ucmd->c_blklen; if (ucmd->c_data) { - data = malloc(ucmd->c_datalen, M_DEVBUF, + data = malloc(ucmd->c_datalen, M_TEMP, M_WAITOK | M_CANFAIL); if (data == NULL) return ENOMEM; @@ -714,7 +714,7 @@ sdmmc_ioctl(struct device *self, u_long request, caddr_t addr) return EFAULT; if (ucmd->c_data) - free(data, M_DEVBUF); + free(data, M_TEMP); break; default: |