暫無描述

101-fix-no-reset-routine-segfault.patch 425B

12345678910111213
  1. --- a/module/owlib/src/c/ow_reset.c
  2. +++ b/module/owlib/src/c/ow_reset.c
  3. @@ -21,6 +21,10 @@ RESET_TYPE BUS_reset(const struct parsed
  4. struct connection_in * in = pn->selected_connection ;
  5. STAT_ADD1_BUS(e_bus_resets, in);
  6. + if ( in->iroutines.reset == NO_RESET_ROUTINE ) {
  7. + return BUS_RESET_OK;
  8. + }
  9. +
  10. switch ( (in->iroutines.reset) (pn) ) {
  11. case BUS_RESET_OK:
  12. in->reconnect_state = reconnect_ok; // Flag as good!