diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-06-30 16:55:58 +0200 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-07-01 12:46:47 +0200 |
commit | 4c767ce48cf858971545164c4c53d028e6241c07 (patch) | |
tree | 3d3d39467783b85594a86c3c176d7f00c5f01e59 /drivers/thunderbolt/icm.c | |
parent | thunderbolt: Add support for on-board retimers (diff) | |
download | linux-4c767ce48cf858971545164c4c53d028e6241c07.tar.xz linux-4c767ce48cf858971545164c4c53d028e6241c07.zip |
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: 3b1d8d577ca8 ("thunderbolt: Implement USB3 bandwidth negotiation routines")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/icm.c')
0 files changed, 0 insertions, 0 deletions