[PATCH AUTOSEL for 4.9 011/100] r8152: fix the list rx_done may be used without initialization

2017-12-12 Thread alexander . levin
From: hayeswang [ Upstream commit 98d068ab52b4b11d403995ed14154660797e7136 ] The list rx_done would be initialized when the linking on occurs. Therefore, if a napi is scheduled without any linking on before, the following kernel panic would happen. BUG: unable to

[PATCH AUTOSEL for 4.9 011/100] r8152: fix the list rx_done may be used without initialization

2017-12-12 Thread alexander . levin
From: hayeswang [ Upstream commit 98d068ab52b4b11d403995ed14154660797e7136 ] The list rx_done would be initialized when the linking on occurs. Therefore, if a napi is scheduled without any linking on before, the following kernel panic would happen. BUG: unable to handle kernel NULL