Re: [PATCH][next] thunderbolt: ensure left shift of 512 does not overflow a 32 bit int

2020-07-01 Thread Mika Westerberg
On Tue, Jun 30, 2020 at 03:55:58PM +0100, Colin King wrote: > From: Colin Ian King > > 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 t

[PATCH][next] thunderbolt: ensure left shift of 512 does not overflow a 32 bit int

2020-06-30 Thread Colin King
From: Colin Ian King 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 intege