Re: [PATCH net] sfp: fix oops with ethtool -m

2018-09-18 Thread David Miller
From: Russell King Date: Tue, 18 Sep 2018 16:48:53 +0100 > If a network interface is created prior to the SFP socket being > available, ethtool can request module information. This unfortunately > leads to an oops: > > Unable to handle kernel NULL pointer dereference at virtual address 0008

[PATCH net] sfp: fix oops with ethtool -m

2018-09-18 Thread Russell King
If a network interface is created prior to the SFP socket being available, ethtool can request module information. This unfortunately leads to an oops: Unable to handle kernel NULL pointer dereference at virtual address 0008 pgd = (ptrval) [0008] *pgd=7c400831, *pte=, *ppte=00