[PATCH v1] net/ice: fix dereference before null check

Zhang, Qi Z qi.z.zhang at intel.com
Wed Feb 9 02:42:18 CET 2022



> -----Original Message-----
> From: Yang, SteveX <stevex.yang at intel.com>
> Sent: Monday, February 7, 2022 4:26 PM
> To: dev at dpdk.org
> Cc: Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z
> <qi.z.zhang at intel.com>; Yang, SteveX <stevex.yang at intel.com>;
> stable at dpdk.org
> Subject: [PATCH v1] net/ice: fix dereference before null check
> 
> This patch fixes coverity issue by assigning the address of the "info->data"
> without "info" pointer check.
> 
> CID 375065:  Null pointer dereferences  (REVERSE_INULL) Null-checking
> "info" suggests that it may be null, but it has already been dereferenced on
> all paths leading to the check.
> 
> Coverity issue: 375065
> Fixes: fd8480e61490 ("net/ice: support module EEPROM")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Steve Yang <stevex.yang at intel.com>

Acked-by: Qi Zhang <qi.z.zhang at intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi



More information about the stable mailing list