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:
parent
1c24480180
commit
506020ae99
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue