summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhu Ling <zhuling0805@qq.com>2026-09-04 23:26:40 +0800
committerMarc Kleine-Budde <mkl@pengutronix.de>2026-11-24 09:38:37 +0100
commit3949d692d64642d8921e4ad0d0e91ba73a668a4c (patch)
tree4e0eacdd91b135c729a380d42311e356e2d8de99 /tools/perf/scripts/python
parent0bfb76b7c9274566cbcfe264e376dc18ad405059 (diff)
can: netlink: fix CAN XL PWM attribute sizing
can_pwm_fill_info() emits the PWM capability limits whenever pwm_const is present, regardless of whether TMS is enabled. In contrast, can_pwm_get_size() currently returns 0 when TMS is disabled. It therefore underestimates the required netlink message size by the nested attribute header and 6 u32 attributes. Always account for the PWM capability attributes when pwm_const is present, and account for the 3 runtime PWM values only when TMS is enabled. Fixes: 46552323fa67 ("can: netlink: add PWM netlink interface") Cc: stable@vger.kernel.org Signed-off-by: Zhu Ling <zhuling0805@qq.com> Link: https://patch.msgid.link/tencent_9A525E0656A4F7D4CA9CFA1AB1A4BFC6D706@qq.com Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://sashiko.dev/#/bug/linux-3924d490-baed-49dc-880a-6fd1163cf08d Reviewed-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions