diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-04-29 18:09:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-01 07:00:17 +0300 |
commit | ab1c637cc6d80c0ee1d5d15f7ec8977f49feee75 (patch) | |
tree | fe5c2c4eecc3874e50090d91cef04d81e33681fd /drivers/dax/pmem | |
parent | 6ef4889fc0b3aa6ab928e7565935ac6f762cee6e (diff) | |
download | linux-ab1c637cc6d80c0ee1d5d15f7ec8977f49feee75.tar.xz |
stmmac: intel: Fix kernel crash due to wrong error path
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@intel.com>
Cc: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/dax/pmem')
0 files changed, 0 insertions, 0 deletions