diff options
| author | 2021-09-15 20:30:22 +0200 | |
|---|---|---|
| committer | 2021-12-21 21:28:20 +0100 | |
| commit | 4e8a5edac5010820e7c5303fc96f5a262e096bb6 (patch) | |
| tree | 4ae05cd8f52bed3722dcdfe14e8c96993722fd53 /arch/um/drivers/virtio_uml.c | |
| parent | lib/logic_iomem: Fix 32-bit build (diff) | |
| download | linux-dev-4e8a5edac5010820e7c5303fc96f5a262e096bb6.tar.xz linux-dev-4e8a5edac5010820e7c5303fc96f5a262e096bb6.zip | |
lib/logic_iomem: Fix operation on 32-bit
On 32-bit, the first entry might be at 0/NULL, but that's
strange and leads to issues, e.g. where we check "if (ret)".
Use a IOREMAP_BIAS/IOREMAP_MASK of 0x80000000UL to avoid
this. This then requires reducing the number of areas (via
MAX_AREAS), but we still have 128 areas, which is enough.
Fixes: ca2e334232b6 ("lib: add iomem emulation (logic_iomem)")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/drivers/virtio_uml.c')
0 files changed, 0 insertions, 0 deletions
