aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/ide/ide-probe.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-08-11 18:35:53 -0700
committerLinus Torvalds <[email protected]>2020-08-12 10:58:01 -0700
commit88b2e9b06381551b707d980627ad0591191f7a2d (patch)
treebf3516545621b2c7faec249367949a8fc6a8ea94 /drivers/ide/ide-probe.c
parentnilfs2: use a more common logging style (diff)
downloadwireguard-linux-88b2e9b06381551b707d980627ad0591191f7a2d.tar.xz
wireguard-linux-88b2e9b06381551b707d980627ad0591191f7a2d.zip
fs/ufs: avoid potential u32 multiplication overflow
The 64 bit ino is being compared to the product of two u32 values, however, the multiplication is being performed using a 32 bit multiply so there is a potential of an overflow. To be fully safe, cast uspi->s_ncg to a u64 to ensure a 64 bit multiplication occurs to avoid any chance of overflow. Fixes: f3e2a520f5fb ("ufs: NFS support") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Evgeniy Dushistov <[email protected]> Cc: Alexey Dobriyan <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Addresses-Coverity: ("Unintentional integer overflow") Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/ide/ide-probe.c')
0 files changed, 0 insertions, 0 deletions
OSZAR »