projects
/
openwrt
/
staging
/
blocktrron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ddd2b4
)
swconfig: fix build with linux 4.0
author
John Crispin
<
[email protected]
>
Fri, 6 Mar 2015 07:57:03 +0000
(07:57 +0000)
committer
John Crispin
<
[email protected]
>
Fri, 6 Mar 2015 07:57:03 +0000
(07:57 +0000)
Signed-off-by: Álvaro Fernández Rojas <
[email protected]
>
SVN-Revision: 44617
target/linux/generic/files/drivers/net/phy/swconfig.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/swconfig.c
b/target/linux/generic/files/drivers/net/phy/swconfig.c
index b0ba90d16fac7de380358000f1ec8ba2e7ccf502..6bb3be13485e6221d1b058dd274bae50f99d4e44 100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/swconfig.c
+++ b/
target/linux/generic/files/drivers/net/phy/swconfig.c
@@
-396,7
+396,8
@@
swconfig_dump_attr(struct swconfig_callback *cb, void *arg)
op->description))
goto nla_put_failure;
- return genlmsg_end(msg, hdr);
+ genlmsg_end(msg, hdr);
+ return msg->len;
nla_put_failure:
genlmsg_cancel(msg, hdr);
return -EMSGSIZE;
@@
-828,7
+829,8
@@
swconfig_get_attr(struct sk_buff *skb, struct genl_info *info)
err = -EINVAL;
goto error;
}
- err = genlmsg_end(msg, hdr);
+ genlmsg_end(msg, hdr);
+ err = msg->len;
if (err < 0)
goto nla_put_failure;
@@
-891,7
+893,8
@@
swconfig_send_switch(struct sk_buff *msg, u32 pid, u32 seq, int flags,
nla_nest_end(msg, p);
}
nla_nest_end(msg, m);
- return genlmsg_end(msg, hdr);
+ genlmsg_end(msg, hdr);
+ return msg->len;
nla_put_failure:
genlmsg_cancel(msg, hdr);
return -EMSGSIZE;