FreeBSD Bugzilla – Attachment 165265 Details for
Bug 206035
gpiobus causes panic when attached to gpio with a single pin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Suggested fix for the problem (please see comments for details)
gpiobus.diff (text/plain), 449 bytes, created by
Stanislav Galabov
on 2016-01-08 14:47:35 UTC
(
hide
)
Description:
Suggested fix for the problem (please see comments for details)
Filename:
MIME Type:
Creator:
Stanislav Galabov
Created:
2016-01-08 14:47:35 UTC
Size:
449 bytes
patch
obsolete
>diff --git a/sys/dev/gpio/gpiobus.c b/sys/dev/gpio/gpiobus.c >index 67106ea..4a7994e 100644 >--- a/sys/dev/gpio/gpiobus.c >+++ b/sys/dev/gpio/gpiobus.c >@@ -184,7 +184,7 @@ gpiobus_init_softc(device_t dev) > if (GPIO_PIN_MAX(sc->sc_dev, &sc->sc_npins) != 0) > return (ENXIO); > >- KASSERT(sc->sc_npins != 0, ("GPIO device with no pins")); >+ KASSERT(sc->sc_npins >= 0, ("GPIO device with no pins")); > > /* Pins = GPIO_PIN_MAX() + 1 */ > sc->sc_npins++;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206035
: 165265