projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e784303
)
Fix a spurious segfault when tearing down interfaces
author
Steven Barth
<steven@midlink.org>
Wed, 21 May 2014 19:24:41 +0000
(21:24 +0200)
committer
Steven Barth
<steven@midlink.org>
Wed, 21 May 2014 19:24:41 +0000
(21:24 +0200)
Signed-off-by: Steven Barth <steven@midlink.org>
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index a4d7b8de2dee7cafe4157d8cabbaf2472337030a..6ca1d0da0be7cd61ec835a8e691a83a8a02490c2 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-319,7
+319,7
@@
interface_cb(struct device_user *dep, enum device_event ev)
new_state = true;
case DEV_EVENT_REMOVE:
interface_set_available(iface, new_state);
- if (!new_state && dep->dev->external)
+ if (!new_state && dep->dev
&& dep->dev
->external)
interface_set_main_dev(iface, NULL);
break;
case DEV_EVENT_UP: