]> git.baikalelectronics.ru Git - kernel.git/commit
platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes
authorVadim Pasternak <vadimp@nvidia.com>
Mon, 27 Sep 2021 14:22:14 +0000 (17:22 +0300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 11 Oct 2021 12:57:22 +0000 (14:57 +0200)
commit4b6c39d8da5985b7d2811a0fcbb0e2a93a19000b
treea79459b724b4921100021b41858c841618c007be
parentcf11b204e0be65677da2019cb3f79e58b88e93f7
platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes

Fix shift argument for function rol32(). It should be provided in bits,
while was provided in bytes.

Fixes: c29259286384 ("platform/mellanox: mlxreg-io: Add support for complex attributes")
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20210927142214.2613929-3-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/mellanox/mlxreg-io.c