diff options
| author | 2010-09-27 19:49:43 +0000 | |
|---|---|---|
| committer | 2010-09-27 19:49:43 +0000 | |
| commit | 105ed8bf23ce37f26ed57e80f37cafad95ab8f44 (patch) | |
| tree | a392455309859db3c83a16324a726a9083909b5a /sys/dev/usb/udl.c | |
| parent | Make sure the SEND_DEV_ID command is sent synchronously, so the response buffer (diff) | |
| download | wireguard-openbsd-105ed8bf23ce37f26ed57e80f37cafad95ab8f44.tar.xz wireguard-openbsd-105ed8bf23ce37f26ed57e80f37cafad95ab8f44.zip | |
A few M_ZEROs without any M_WAITOK/M_NOWAITs.
Diffstat (limited to 'sys/dev/usb/udl.c')
| -rw-r--r-- | sys/dev/usb/udl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c index 72e8304e9a8..4f14971d98c 100644 --- a/sys/dev/usb/udl.c +++ b/sys/dev/usb/udl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udl.c,v 1.61 2010/08/31 17:00:05 deraadt Exp $ */ +/* $OpenBSD: udl.c,v 1.62 2010/09/27 19:49:43 thib Exp $ */ /* * Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org> @@ -657,7 +657,7 @@ udl_alloc_screen(void *v, const struct wsscreen_descr *type, /* allocate character backing store */ sc->sc_cbs = malloc((sc->sc_ri.ri_rows * sc->sc_ri.ri_cols) * - sizeof(*sc->sc_cbs), M_DEVBUF, M_ZERO); + sizeof(*sc->sc_cbs), M_DEVBUF, M_NOWAIT|M_ZERO); if (sc->sc_cbs == NULL) { printf("%s: can't allocate mem for character backing store!\n", DN(sc)); |
