summaryrefslogtreecommitdiff
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorhuijin.park <huijin.park@samsung.com>2018-11-28 03:02:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 15:38:22 +0100
commit87b4ed6c62132663689f553ba506bfe5891c0f2e (patch)
tree50dd5c0663575b57b99c52b352cd8f38291caf2e /kernel/futex.c
parent77cfe99a0765b45473bbf7af3123bb39018d6005 (diff)
mtd: spi-nor: cast to u64 to avoid uint overflows
commit 84a1c2109d23df3543d96231c4fee1757299bb1a upstream. The "params->size" is defined as "u64". And "info->sector_size" and "info->n_sectors" are defined as unsigned int and u16. Thus, u64 data might have strange data(loss data) if the result overflows an unsigned int. This patch casts "info->sector_size" to an u64. Signed-off-by: huijin.park <huijin.park@samsung.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions