Skip to content

Commit

Permalink
update after: tools: ynl: fix setting presence bits in simple nests
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Mar 21, 2024
1 parent 1a26c19 commit 8649f9e
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/ynl-c/devlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ static inline void
devlink_port_set_req_set_port_function_hw_addr(struct devlink_port_set_req *req,
const void *hw_addr, size_t len)
{
req->_present.port_function = 1;
free(req->port_function.hw_addr);
req->port_function._present.hw_addr_len = len;
req->port_function.hw_addr = malloc(req->port_function._present.hw_addr_len);
Expand Down
Loading

0 comments on commit 8649f9e

Please sign in to comment.