diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-01-14 22:26:35 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-01-14 22:26:35 +0000 |
| commit | 73cf9e9df75eef45cac41a8ae29c98273c61cc48 (patch) | |
| tree | 974c5251c32e317f5284d002bd23b36848ab34a1 /sys/dev | |
| parent | 1390971829b141ad6104886addc204893c66752c (diff) | |
ihidev(4): Allocate report buffer with KM_SLEEP.
Limited to 64k and only happens on attach anyway. Let's not leave a
rake to trip on here.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/i2c/ihidev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/i2c/ihidev.c b/sys/dev/i2c/ihidev.c index 47831876424..4f858225a1f 100644 --- a/sys/dev/i2c/ihidev.c +++ b/sys/dev/i2c/ihidev.c @@ -1,4 +1,4 @@ -/* $NetBSD: ihidev.c,v 1.21 2022/01/14 22:25:49 riastradh Exp $ */ +/* $NetBSD: ihidev.c,v 1.22 2022/01/14 22:26:35 riastradh Exp $ */ /* $OpenBSD ihidev.c,v 1.13 2017/04/08 02:57:23 deraadt Exp $ */ /*- @@ -54,7 +54,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.21 2022/01/14 22:25:49 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.22 2022/01/14 22:26:35 riastradh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -643,7 +643,7 @@ ihidev_hid_desc_parse(struct ihidev_softc *sc) } sc->sc_reportlen = le16toh(sc->hid_desc.wReportDescLength); - sc->sc_report = kmem_zalloc(sc->sc_reportlen, KM_NOSLEEP); + sc->sc_report = kmem_zalloc(sc->sc_reportlen, KM_SLEEP); if (ihidev_hid_command(sc, I2C_HID_REPORT_DESCR, 0, false)) { aprint_error_dev(sc->sc_dev, "failed fetching HID report\n"); |
