Skip to content
Commit 4c767ce4 authored by Colin Ian King's avatar Colin Ian King Committed by Mika Westerberg
Browse files

thunderbolt: Ensure left shift of 512 does not overflow a 32 bit int



The 32 bit int value 512 is being left shifted and then used in a context
that expects the expression to be a larger unsigned long. There may be
a potential integer overflow, so make 512 a UL before shift to avoid
any such issues.

Addresses-Coverity: ("Uninintentional integer overflow")
Fixes: 3b1d8d57 ("thunderbolt: Implement USB3 bandwidth negotiation routines")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent dacb1287
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment