Check the return value of config_intrhook_establish().

Found with:	Coverity Prevent(tm)
CID:		2115
This commit is contained in:
Rui Paulo 2008-11-29 14:26:22 +00:00
parent 4710587722
commit f0f4475a13

View File

@ -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.