aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c
diff options
context:
space:
mode:
authorNikos Tsironis <[email protected]>2020-03-27 14:01:10 +0000
committerMike Snitzer <[email protected]>2020-03-27 18:42:25 +0000
commit9fc06ff56845cc5ccafec52f545fc2e08d22f849 (patch)
treea1d17e2eba1e558cbcccf03d83ed817356a45d82 /drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c
parentdm clone: Add overflow check for number of regions (diff)
downloadkernel-9fc06ff56845cc5ccafec52f545fc2e08d22f849.tar.gz
kernel-9fc06ff56845cc5ccafec52f545fc2e08d22f849.zip
dm clone: Add missing casts to prevent overflows and data corruption
Add missing casts when converting from regions to sectors. In case BITS_PER_LONG == 32, the lack of the appropriate casts can lead to overflows and miscalculation of the device sector. As a result, we could end up discarding and/or copying the wrong parts of the device, thus corrupting the device's data. Fixes: 7431b7835f55 ("dm: add clone target") Cc: [email protected] # v5.4+ Signed-off-by: Nikos Tsironis <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c')
0 files changed, 0 insertions, 0 deletions