]> git.baikalelectronics.ru Git - kernel.git/commit
drm: prevent a harmless integer overflow in drm_legacy_sg_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Feb 2020 09:23:21 +0000 (12:23 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 28 Feb 2020 23:16:12 +0000 (00:16 +0100)
commit703ca95fcc85c84e8ca2f6a7760b9258bd20b837
tree659e607f71de4bad2620dcfa774098787462e1d4
parenta0f8cda2610f62ca8390d88622386d5e3e62cdd0
drm: prevent a harmless integer overflow in drm_legacy_sg_alloc()

There is an integer overflow when we round up to PAGE_SIZE, but it's
harmless because we never re-use "request->size" for anything meaningful.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200228092321.axulddmkxrujkmas@kili.mountain
drivers/gpu/drm/drm_scatter.c