Files
android_kernel_xiaomi_sm8450/arch/powerpc/include/asm
Geoff Levand f8763ab3fb powerpc/ps3: Add dma_mask to ps3_dma_region
[ Upstream commit 9733862e50fdba55e7f1554e4286fcc5302ff28e ]

Commit f959dcd6dd (dma-direct: Fix
potential NULL pointer dereference) added a null check on the
dma_mask pointer of the kernel's device structure.

Add a dma_mask variable to the ps3_dma_region structure and set
the device structure's dma_mask pointer to point to this new variable.

Fixes runtime errors like these:
# WARNING: Fixes tag on line 10 doesn't match correct format
# WARNING: Fixes tag on line 10 doesn't match correct format

  ps3_system_bus_match:349: dev=8.0(sb_01), drv=8.0(ps3flash): match
  WARNING: CPU: 0 PID: 1 at kernel/dma/mapping.c:151 .dma_map_page_attrs+0x34/0x1e0
  ps3flash sb_01: ps3stor_setup:193: map DMA region failed

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/562d0c9ea0100a30c3b186bcc7adb34b0bbd2cd7.1622746428.git.geoff@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:05:42 +02:00
..
2019-11-18 22:27:51 +11:00
2020-05-28 23:24:36 +10:00
2020-10-08 12:50:52 +11:00
2020-10-07 22:34:47 +11:00
2020-07-27 14:29:23 -04:00
2020-05-28 23:24:36 +10:00
2020-07-23 17:41:36 +10:00
2020-07-20 22:57:58 +10:00
2020-10-06 07:07:03 +02:00
2020-06-02 20:59:20 +10:00
2018-05-25 12:04:43 +10:00
2021-05-14 09:50:39 +02:00
2020-07-27 00:01:32 +10:00
2020-07-23 17:43:44 +10:00
2018-07-30 22:48:21 +10:00
2019-05-01 16:45:05 +10:00