diff options
author | 2009-02-15 17:08:23 +0000 | |
---|---|---|
committer | 2009-02-15 17:08:23 +0000 | |
commit | c474cb18c4c28df304ca30150c3d21c691241feb (patch) | |
tree | 5b3e673beda51bb674dc9678c131231c2d19f0d5 | |
parent | Set the limit of the GDT table to its size - 1. (diff) | |
download | wireguard-openbsd-c474cb18c4c28df304ca30150c3d21c691241feb.tar.xz wireguard-openbsd-c474cb18c4c28df304ca30150c3d21c691241feb.zip |
change M_WAITOK --> M_WAITOK | M_CANFAIL
with help from miod@
ok miod@ oga@
-rw-r--r-- | sys/dev/ic/vga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c index 511a480278c..11a1cfba0da 100644 --- a/sys/dev/ic/vga.c +++ b/sys/dev/ic/vga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vga.c,v 1.48 2009/02/01 14:37:22 miod Exp $ */ +/* $OpenBSD: vga.c,v 1.49 2009/02/15 17:08:23 chl Exp $ */ /* $NetBSD: vga.c,v 1.28.2.1 2000/06/30 16:27:47 simonb Exp $ */ /*- @@ -937,7 +937,7 @@ vga_load_font(v, cookie, data) if (vc->vc_fonts[slot] != NULL) return (EEXIST); - f = malloc(sizeof(struct vgafont), M_DEVBUF, M_WAITOK); + f = malloc(sizeof(struct vgafont), M_DEVBUF, M_WAITOK | M_CANFAIL); if (f == NULL) return (ENOMEM); strlcpy(f->name, data->name, sizeof(f->name)); |