[Intel-wired-lan] [PATCH S11 08/16] ice: fix numeric overflow warning
Bowers, AndrewX
andrewx.bowers at intel.com
Thu Feb 14 23:59:27 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Friday, February 8, 2019 12:51 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S11 08/16] ice: fix numeric overflow
> warning
>
> From: Bruce Allan <bruce.w.allan at intel.com>
>
> When compiling and analyzing the driver on newer kernels, a static analyzer
> warns about the following "numeric overflow" issues:
>
> "The result of expression: 'budget-1' generates 4-byte type while casting
> to a bigger size of 8-byte".
>
> "The result of expression: '*words-words_read' generates 4-byte type
> while casting to a bigger size of 8-byte".
>
> Fix them both.
>
> Signed-off-by: Bruce Allan <bruce.w.allan at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
> [Anirudh Venkataramanan <anirudh.venkataramanan at intel.com> squashed
> commits] [Anirudh Venkataramanan <anirudh.venkataramanan at intel.com>
> rewrote commit message]
> ---
> drivers/net/ethernet/intel/ice/ice_nvm.c | 7 ++++---
> drivers/net/ethernet/intel/ice/ice_txrx.c | 2 +-
> 2 files changed, 5 insertions(+), 4 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list