]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ocp: Make debugfs variables the correct bitwidth
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 16 Mar 2022 16:53:47 +0000 (09:53 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Mar 2022 00:38:37 +0000 (17:38 -0700)
commitbc83e1f9c2e9fd3b2d66bb5fb4f33cfbcf7e74c8
tree7e9fba204aa823cd6c46f283f22aaeb1608f983f
parentb6c30db3ea2b0fb780df010913eebcbad40c70a3
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.

Fixes: 7ef038060662 ("ptp: ocp: Add support for selectable SMA directions.")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Link: https://lore.kernel.org/r/20220316165347.599154-1-jonathan.lemon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c