can: Fix nested message creation in can_put_attrs()

Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: Holger Dengler <dengler@linutronix.de>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Holger Dengler 2013-02-01 11:56:47 +01:00 committed by Thomas Graf
parent 1c24480180
commit 506020ae99

View file

@ -321,6 +321,8 @@ static int can_put_attrs(struct nl_msg *msg, struct rtnl_link *link)
NLA_PUT(msg, CAN_HAS_CLOCK, sizeof(ci->ci_clock),
&ci->ci_clock);
nla_nest_end(msg, data);
nla_put_failure:
return 0;