Re: [PATCH net] cxgb4: avoid crash on PCI error recovery path

2017-05-30 Thread David Miller
From: "Guilherme G. Piccoli" Date: Sun, 28 May 2017 23:07:01 -0300 > During PCI error recovery process, specifically on eeh_err_detected() > we might have a NULL netdev struct, hence a direct dereference will > lead to a kernel oops. This was observed with latest upstream kernel > (v4.12-rc2) on

[PATCH net] cxgb4: avoid crash on PCI error recovery path

2017-05-28 Thread Guilherme G. Piccoli
During PCI error recovery process, specifically on eeh_err_detected() we might have a NULL netdev struct, hence a direct dereference will lead to a kernel oops. This was observed with latest upstream kernel (v4.12-rc2) on Chelsio adapter T422-CR in PowerPC machines. This patch checks for NULL poin