[Intel-wired-lan] [PATCH v2 iwl-next] ice: Fix some null pointer dereference issues in ice_ptp.c

Pucha, HimasekharX Reddy himasekharx.reddy.pucha at intel.com
Mon Dec 18 11:46:01 UTC 2023


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Kunwu Chan
> Sent: Tuesday, December 12, 2023 8:10 AM
> To: Brandeburg, Jesse <jesse.brandeburg at intel.com>; Nguyen, Anthony L <anthony.l.nguyen at intel.com>; davem at davemloft.net; edumazet at google.com; kuba at kernel.org; pabeni at redhat.com; richardcochran at gmail.com; Keller, Jacob E <jacob.e.keller at intel.com>
> Cc: Michalik, Michal <michal.michalik at intel.com>; Kunwu Chan <chentao at kylinos.cn>; Kunwu Chan <kunwu.chan at hotmail.com>; netdev at vger.kernel.org; linux-kernel at vger.kernel.org; Kolacinski, Karol <karol.kolacinski at intel.com>; intel-wired-lan at lists.osuosl.org; Kitszel, Przemyslaw <przemyslaw.kitszel at intel.com>
> Subject: [Intel-wired-lan] [PATCH v2 iwl-next] ice: Fix some null pointer dereference issues in ice_ptp.c
>
> devm_kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure.
>
> Fixes: d938a8cca88a ("ice: Auxbus devices & driver for E822 TS")
> Cc: Kunwu Chan <kunwu.chan at hotmail.com>
> Suggested-by: Przemek Kitszel <przemyslaw.kitszel at intel.com>
> Signed-off-by: Kunwu Chan <chentao at kylinos.cn>
> ---
>  drivers/net/ethernet/intel/ice/ice_ptp.c | 4 ++++
>  1 file changed, 4 insertions(+)
>

Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha at intel.com> (A Contingent worker at Intel)



More information about the Intel-wired-lan mailing list