git: em/emx: Fix attach error handling and media leakage in detach
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Sun Sep 22 18:43:45 PDT 2013
commit d28112277f4c399526ab70620043fa490280d797
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Mon Sep 23 09:34:17 2013 +0800
em/emx: Fix attach error handling and media leakage in detach
- Add missing ether_ifdetach() if reset fails.
Reported-by: Johannes Hofmann <Johannes.Hofmann at gmx.de>
- Call ifmedia_removeall() on detach path, since these drivers add
ifmedia themselves; move ifmedia_init() to the beginning of attach
for this to work.
Summary of changes:
sys/dev/netif/em/if_em.c | 10 +++++++---
sys/dev/netif/emx/if_emx.c | 6 ++++--
2 files changed, 11 insertions(+), 5 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d28112277f4c399526ab70620043fa490280d797
--
DragonFly BSD source repository
More information about the Commits
mailing list