ptp: ocp: Make debugfs variables the correct bitwidth
PATCH 1/1 ptp: ocp: Make debugfs variables the correct bitwidth
An earlier patch mistakenly changed these variables from u32 to u16, leading to unintended truncation. Restore the original logic.
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Jonathan Lemon <[email protected]>
--- drivers/ptp/ptp_ocp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/ptp/ptp_ocp.c +2 -1
@@ -2983,11 +2983,12 @@ ptp_ocp_summary_show(struct seq_file *s, void *data) {struct device *dev = s->private;struct ptp_system_timestamp sts; -u16 sma_val[4 ][2 ], ctrl, val;struct ts_reg __iomem *ts_reg;struct timespec64 ts;struct ptp_ocp *bp; +u16 sma_val[4 ][2 ];char *src, *buf; +u32 ctrl, val;bool on, map;int i;
Signature · 1 line
2.31.1
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 16 Mar 2022 09:53:47 -0700 you wrote:
An earlier patch mistakenly changed these variables from u32 to u16, leading to unintended truncation. Restore the original logic.
Reported-by Dan Carpenter <[email protected]>Signed-off-by Jonathan Lemon <[email protected]>--- drivers/ptp/ptp_ocp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Here is the summary with links:
- [net-next] ptp: ocp: Make debugfs variables the correct bitwidth
https://git.kernel.org/netdev/net-next/c/2b341f7532d4
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html