diff options
author | Dan Carpenter <[email protected]> | 2023-07-03 17:17:45 +0300 |
---|---|---|
committer | Vishal Verma <[email protected]> | 2023-07-14 14:33:21 -0600 |
commit | 95c6bff72b02ca084be60c08503d563e506b733f (patch) | |
tree | b19089e34a282ab8116812cb021fe4d8d35890fe /lib/test-string_helpers.c | |
parent | 9171dfcda4f26dc6ebfd8d50137c5f294c2060ee (diff) |
cxl/mem: Fix a double shift bug
The CXL_FW_CANCEL macro is used with set/test_bit() so it should be a
bit number and not the shifted value. The original code is the
equivalent of using BIT(BIT(0)) so it's 0x2 instead of 0x1. This has
no effect on runtime because it's done consistently and nothing else
was using the 0x2 bit.
Fixes: 9521875bbe00 ("cxl: add a firmware update mechanism using the sysfs firmware loader")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Vishal Verma <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions