aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Ahern <[email protected]>2020-04-01 21:02:25 -0700
committerLinus Torvalds <[email protected]>2020-04-02 09:35:25 -0700
commit4054ab64e29bb05b3dfe758fff3c38a74ba753bb (patch)
tree37e34f597bc00fe5fb179f6d50bc9185d0d4bfcc /tools/perf/scripts/python
parent1a323ea5356edbb3073dc59d51b9e6b86908857d (diff)
tools/accounting/getdelays.c: fix netlink attribute length
A recent change to the netlink code: 6e237d099fac ("netlink: Relax attr validation for fixed length types") logs a warning when programs send messages with invalid attributes (e.g., wrong length for a u32). Yafang reported this error message for tools/accounting/getdelays.c. send_cmd() is wrongly adding 1 to the attribute length. As noted in include/uapi/linux/netlink.h nla_len should be NLA_HDRLEN + payload length, so drop the +1. Fixes: 9e06d3f9f6b1 ("per task delay accounting taskstats interface: documentation fix") Reported-by: Yafang Shao <[email protected]> Signed-off-by: David Ahern <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Tested-by: Yafang Shao <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Shailabh Nagar <[email protected]> Cc: <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions