[Linux-stm32] [PATCH v1] stmmac: intel: Fix kernel crash due to wrong error path

David Miller davem at davemloft.net
Fri May 1 04:00:37 UTC 2020


From: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Date: Wed, 29 Apr 2020 18:09:32 +0300

> Unfortunately sometimes ->probe() may fail. The commit b9663b7ca6ff
> ("net: stmmac: Enable SERDES power up/down sequence")
> messed up with error handling and thus:
> 
> [   12.811311] ------------[ cut here ]------------
> [   12.811993] kernel BUG at net/core/dev.c:9937!
> 
> Fix this by properly crafted error path.
> 
> Fixes: b9663b7ca6ff ("net: stmmac: Enable SERDES power up/down sequence")
> Cc: Voon Weifeng <weifeng.voon at intel.com>
> Cc: Ong Boon Leong <boon.leong.ong at intel.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>

Applied.



More information about the Linux-stm32 mailing list