Commit b951022
net: sh_eth: Fix missing rtnl lock in suspend/resume path
Fix the suspend/resume path by ensuring the rtnl lock is held where
required. Calls to sh_eth_close, sh_eth_open and wol operations must be
performed under the rtnl lock to prevent conflicts with ongoing ndo
operations.
Fixes: b71af04 ("sh_eth: add more PM methods")
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 2c2ebb2 commit b951022
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3494 | 3494 | | |
3495 | 3495 | | |
3496 | 3496 | | |
| 3497 | + | |
3497 | 3498 | | |
3498 | 3499 | | |
3499 | 3500 | | |
3500 | 3501 | | |
| 3502 | + | |
3501 | 3503 | | |
3502 | 3504 | | |
3503 | 3505 | | |
| |||
3511 | 3513 | | |
3512 | 3514 | | |
3513 | 3515 | | |
| 3516 | + | |
3514 | 3517 | | |
3515 | 3518 | | |
3516 | 3519 | | |
3517 | 3520 | | |
| 3521 | + | |
3518 | 3522 | | |
3519 | 3523 | | |
3520 | 3524 | | |
| |||
0 commit comments