]> www.infradead.org Git - linux-platform-drivers-x86.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:54:41 +0000 (14:54 +0200)
commit5fd56f11838da1580cc77743c08cf02c9cd48380
tree84139a05c89c8e902f47cf9d7ddacd07d5420e00
parent452dcfab995437888106a5af6730363f67efdf79
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: 86148190a7db ("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