cvs commit: src/sys/dev/netif/xe if_xe.c

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Wed Jul 13 10:47:28 PDT 2005


joerg       2005/07/13 10:46:05 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/xe     if_xe.c 
  Log:
  Call bus_setup_intr in xe_attach, not xe_activate. This prevents
  race conditions and avoids calling ether_detach without first calling
  ether_attach.
  Call bus_teardown_intr in xe_detach, not xe_deactivate. This is
  symmetrical to the attach path. Use a critical section in xe_detach
  to protect against concurrent interrupts.
  
  Submitted-by: Sepherosa Ziehau <sepherosa at xxxxxxxxx>
  
  Revision  Changes    Path
  1.26      +18 -13    src/sys/dev/netif/xe/if_xe.c


http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/xe/if_xe.c.diff?r1=1.25&r2=1.26&f=u





More information about the Commits mailing list