diff options
| author | Rui Paulo <rpaulo@FreeBSD.org> | 2008-11-29 14:26:22 +0000 |
|---|---|---|
| committer | Rui Paulo <rpaulo@FreeBSD.org> | 2008-11-29 14:26:22 +0000 |
| commit | f0f4475a13fe3545c10e9b3e8c69679c4abfb1b3 (patch) | |
| tree | 98bd53055ca520b30e3646ccb14b541fe395862c | |
| parent | 4710587722183b6e12572e705be4d796accf2692 (diff) | |
Notes
| -rw-r--r-- | sys/dev/k8temp/k8temp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/k8temp/k8temp.c b/sys/dev/k8temp/k8temp.c index f0155fba3ce9..35cca988e351 100644 --- a/sys/dev/k8temp/k8temp.c +++ b/sys/dev/k8temp/k8temp.c @@ -187,7 +187,11 @@ k8temp_attach(device_t dev) */ sc->sc_ich.ich_func = k8temp_intrhook; sc->sc_ich.ich_arg = dev; - config_intrhook_establish(&sc->sc_ich); + if (config_intrhook_establish(&sc->sc_ich) != 0) { + device_printf(dev, "config_intrhook_establish " + "failed!\n"); + return (ENXIO); + } /* * dev.k8temp.N tree. |
