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:
13cb667
)
fix a null pointer deref bug
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 11 Sep 2011 19:50:28 +0000
(21:50 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 11 Sep 2011 19:50:28 +0000
(21:50 +0200)
proto-shell.c
patch
|
blob
|
history
diff --git
a/proto-shell.c
b/proto-shell.c
index bb42c982b5f532477ba880c309e131d0922e0379..7acb4c62ad2d3410ba92b0cb55473732eebaf294 100644
(file)
--- a/
proto-shell.c
+++ b/
proto-shell.c
@@
-137,7
+137,8
@@
proto_shell_teardown_cb(struct uloop_process *p, int ret)
state = container_of(p, struct proto_shell_state, teardown_task);
state->proto.proto_event(&state->proto, IFPEV_DOWN);
- device_remove_user(&state->l3_dev);
+ if (state->l3_dev.dev)
+ device_remove_user(&state->l3_dev);
}
static void