Check the return value of config_intrhook_establish().
Found with: Coverity Prevent(tm) CID: 2115
This commit is contained in:
parent
4710587722
commit
f0f4475a13
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user