aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_fbdev.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <[email protected]>2022-10-05 14:43:38 +0000
committerJason A. Donenfeld <[email protected]>2022-10-11 23:42:58 +0000
commit8b3ccbc1f1f91847160951aa15dd27c22dddcb49 (patch)
treeb145d918cbcfc9c326136e1939d8b787c9983055 /drivers/gpu/drm/omapdrm/omap_fbdev.c
parenttreewide: use prandom_u32_max() when possible, part 1 (diff)
downloadkernel-8b3ccbc1f1f91847160951aa15dd27c22dddcb49.tar.gz
kernel-8b3ccbc1f1f91847160951aa15dd27c22dddcb49.zip
treewide: use prandom_u32_max() when possible, part 2
Rather than incurring a division or requesting too many random bytes for the given range, use the prandom_u32_max() function, which only takes the minimum required bytes from the RNG and avoids divisions. This was done by hand, covering things that coccinelle could not do on its own. Reviewed-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Yury Norov <[email protected]> Reviewed-by: Jan Kara <[email protected]> # for ext2, ext4, and sbitmap Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fbdev.c')
0 files changed, 0 insertions, 0 deletions