aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorMatt Coster <[email protected]>2024-03-05 10:28:33 +0000
committerMatt Coster <[email protected]>2024-04-29 12:31:28 +0100
commite4236b14fe32a8d92686ec656c870a6bb1d6f50a (patch)
treeabf08c0734af9b814d95ef6f38935cc44aab96ed /drivers/usb/cdns3/cdns3-imx.c
parent27906e5d78248b19bcdfdae72049338c828897bb (diff)
drm/imagination: Ensure PVR_MIPS_PT_PAGE_COUNT is never zero
When the host page size was more than 4 times larger than the FW page size, this macro evaluated to zero resulting in zero-sized arrays. Use DIV_ROUND_UP() to ensure the correct behavior. Reported-by: [email protected] Closes: https://lore.kernel.org/dri-devel/[email protected] Link: https://lore.kernel.org/dri-devel/[email protected] Fixes: 927f3e0253c1 ("drm/imagination: Implement MIPS firmware processor and MMU support") Cc: [email protected] Signed-off-by: Matt Coster <[email protected]> Reviewed-by: Frank Binns <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions