Commit e6864af
ravb: Fix up dma_free_coherent() call in ravb_remove()
In ravb_remove(), dma_free_coherent() should be call after
unregister_netdev(). Otherwise, this controller is possible to use
the freed buffer.
Fixes: c156633 ("Renesas Ethernet AVB driver proper")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/20231005011201.14368-2-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent aba0e90 commit e6864af
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2891 | 2891 | | |
2892 | 2892 | | |
2893 | 2893 | | |
2894 | | - | |
2895 | | - | |
2896 | 2894 | | |
2897 | 2895 | | |
2898 | 2896 | | |
2899 | 2897 | | |
2900 | 2898 | | |
2901 | 2899 | | |
2902 | 2900 | | |
| 2901 | + | |
| 2902 | + | |
2903 | 2903 | | |
2904 | 2904 | | |
2905 | 2905 | | |
| |||
0 commit comments