projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
linux/swconfig_get_attr: fix leak of msg in case of error
[openwrt/staging/mkresin.git]
/
target
/
linux
/
generic
/
files
/
drivers
/
net
/
phy
/
swconfig.c
diff --git
a/target/linux/generic/files/drivers/net/phy/swconfig.c
b/target/linux/generic/files/drivers/net/phy/swconfig.c
index 63a95881361ca76bd8a5f624f48dbe9b121d62dd..f6f26e43ab98fef74f581874017827d84eebc099 100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/swconfig.c
+++ b/
target/linux/generic/files/drivers/net/phy/swconfig.c
@@
-893,7
+893,7
@@
swconfig_get_attr(struct sk_buff *skb, struct genl_info *info)
default:
pr_debug("invalid type in attribute\n");
err = -EINVAL;
- goto
error
;
+ goto
nla_put_failure
;
}
genlmsg_end(msg, hdr);
err = msg->len;