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:
8520d78
)
system-linux: fix system_rtnl_call() return code
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 15 Apr 2012 16:37:30 +0000
(18:37 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 15 Apr 2012 16:37:30 +0000
(18:37 +0200)
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index 66799e97fb9efe82a99bc7c4328367646adeccfc..5b217cf998668fdd4113f2daae03b35fadde6317 100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-243,10
+243,15
@@
handle_hotplug_event(struct uloop_fd *u, unsigned int events)
static int system_rtnl_call(struct nl_msg *msg)
{
- int s = -(nl_send_auto_complete(sock_rtnl, msg)
- || nl_wait_for_ack(sock_rtnl));
+ int ret;
+
+ ret = nl_send_auto_complete(sock_rtnl, msg);
nlmsg_free(msg);
- return s;
+
+ if (ret < 0)
+ return ret;
+
+ return nl_wait_for_ack(sock_rtnl);
}
int system_bridge_delbr(struct device *bridge)