Skip to content
Commit 69c3683c authored by Keiichi KII's avatar Keiichi KII Committed by David S. Miller
Browse files

netconsole: avoid null pointer dereference at show_local_mac()



This patch avoids a null pointer dereference when we read local_mac 
for netconsole in configfs and shows default local mac address
value.

A null pointer dereference occurs when we call show_local_mac() via 
local_mac entry in configfs before we setup the content of netpoll
using netpoll_setup().

Signed-off-by: default avatarKeiichi KII <k-keiichi@bx.jp.nec.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b5c15fc0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment