// Set-up int routing.
PCI_CLIENT_DEBUG("Calling setup_int_routing\n");
- err = setup_int_routing(0, handler, handler_arg, reloc_handler, reloc_handler_arg);
- if(err_is_fail(err)){
- DEBUG_ERR(err, "Could not set up int routing. Continuing w/o interrupts");
+ if (!(handler == NULL)) {
+ err = setup_int_routing(0, handler, handler_arg, reloc_handler, reloc_handler_arg);
+ if(err_is_fail(err)){
+ DEBUG_ERR(err, "Could not set up int routing. Continuing w/o interrupts");
+ }
}
// FIXME: leak