Commit 7aaa0f3
dpaa2-switch: seed the buffer pool after allocating the swp
Any interraction with the buffer pool (seeding a buffer, acquire one) is
made through a software portal (SWP, a DPIO object).
There are circumstances where the dpaa2-switch driver probes on a DPSW
before any DPIO devices have been probed. In this case, seeding of the
buffer pool will lead to a panic since no SWPs are initialized.
To fix this, seed the buffer pool after making sure that the software
portals have been probed and are ready to be used.
Fixes: 0b1b713 ("staging: dpaa2-switch: handle Rx path on control interface")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 9d85a6f commit 7aaa0f3
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2770 | 2770 | | |
2771 | 2771 | | |
2772 | 2772 | | |
2773 | | - | |
2774 | | - | |
2775 | | - | |
2776 | | - | |
2777 | 2773 | | |
2778 | 2774 | | |
2779 | | - | |
| 2775 | + | |
2780 | 2776 | | |
2781 | 2777 | | |
2782 | 2778 | | |
2783 | 2779 | | |
2784 | 2780 | | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
2785 | 2785 | | |
2786 | 2786 | | |
2787 | 2787 | | |
2788 | | - | |
| 2788 | + | |
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
2792 | 2792 | | |
| 2793 | + | |
| 2794 | + | |
2793 | 2795 | | |
2794 | 2796 | | |
2795 | 2797 | | |
2796 | 2798 | | |
2797 | | - | |
2798 | | - | |
2799 | 2799 | | |
2800 | 2800 | | |
2801 | 2801 | | |
| |||
0 commit comments