Skip to content

can: gw: Netlink related fixes

Thomas Graf linux-can 1 version Applied

Status from this message: Thanks applied to linux-can-next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4can: Don't bump nlmsg_len manuallynet/can/gw.c+1 -260 replies
2/4can: Use nla_policy to validate netlink attributesnet/can/gw.c+23 -240 replies
3/4can: Properly fill the netlink header when responding to RTM_GETROUTEnet/can/gw.c+7 -36 replies
4/4can: Remove pointless castsnet/can/gw.c+2 -40 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchOliver Hartkopp
1/4
2/4
3/4T-b A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] can: gw: Netlink related fixes

Hi

These patches fix some Netlink quirks in the CAN gateway code. Unfortunately I do not own any CAN hardware so this is compile tested only. I'm fairly confident though as the changes are mostly straight forward. I would appreciate if someone could run them through a test suite or something though.

Thomas Graf (4):
can: Don't bump nlmsg_len manually
can: Use nla_policy to validate netlink attributes
can: Properly fill the netlink header when responding to RTM_GETROUTE
can: Remove pointless casts

 net/can/gw.c |   90 +++++++++++++++++++++------------------------------------
 1 files changed, 33 insertions(+), 57 deletions(-)
Signature · 1 line
1.7.7.6