mirror of https://github.com/torvalds/linux.git
The CXL decoder flags are defined as bitmasks, not bit indices.
Using test_bit() to check them interprets the mask value as a bit
index, which is the wrong test.
For CXL_DECODER_F_NORMALIZED_ADDRESSING the test reads beyond the
flags word, making the flag sometimes appear set and blocking creation
of CXL region debugfs attributes that support poison operations.
Replace test_bit() with a bitmask check.
Found with cxl-test.
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| atl.c | ||
| cdat.c | ||
| core.h | ||
| edac.c | ||
| features.c | ||
| hdm.c | ||
| mbox.c | ||
| mce.c | ||
| mce.h | ||
| memdev.c | ||
| pci.c | ||
| pmem.c | ||
| pmu.c | ||
| port.c | ||
| ras.c | ||
| ras_rch.c | ||
| region.c | ||
| regs.c | ||
| suspend.c | ||
| trace.c | ||
| trace.h | ||