lkml.org 
[lkml]   [2021]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] net: stmmac: fix kernel panic due to NULL pointer dereference of mdio_bus_data
On Fri, 28 May 2021 12:40:56 +0530 Sriranjani P wrote:
> Fixed link does not need mdio bus and in that case mdio_bus_data will
> not be allocated. Before using mdio_bus_data we should check for NULL.
>
> This patch fix the kernel panic due to NULL pointer dereference of
> mdio_bus_data when it is not allocated.
>
> Without this patch we do see following kernel crash caused due to kernel
> NULL pointer dereference.

Applied, thanks.

\
 
 \ /
  Last update: 2021-05-30 23:16    [W:0.277 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site