Repository navigation
Commit e8684db
net: ethernet: microchip: lan743x: Fix skb allocation failure
The driver allocates skb during ndo_open with GFP_ATOMIC which has high chance of failure when there are multiple instances.
GFP_KERNEL is enough while open and use GFP_ATOMIC only from interrupt context.
Fixes: 23f0703 ("lan743x: Add main source files for new lan743x driver")
Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1d9d6fd commit e8684db
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1944 | 1944 | | |
1945 | 1945 | | |
1946 | 1946 | | |
1947 | | - | |
| 1947 | + | |
| 1948 | + | |
1948 | 1949 | | |
1949 | 1950 | | |
1950 | 1951 | | |
| |||
1958 | 1959 | | |
1959 | 1960 | | |
1960 | 1961 | | |
1961 | | - | |
| 1962 | + | |
1962 | 1963 | | |
1963 | 1964 | | |
1964 | 1965 | | |
| |||
2120 | 2121 | | |
2121 | 2122 | | |
2122 | 2123 | | |
2123 | | - | |
| 2124 | + | |
| 2125 | + | |
2124 | 2126 | | |
2125 | 2127 | | |
2126 | 2128 | | |
| |||
2335 | 2337 | | |
2336 | 2338 | | |
2337 | 2339 | | |
2338 | | - | |
| 2340 | + | |
2339 | 2341 | | |
2340 | 2342 | | |
2341 | 2343 | | |
2342 | 2344 | | |
2343 | 2345 | | |
2344 | 2346 | | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2345 | 2350 | | |
2346 | 2351 | | |
2347 | 2352 | | |
| |||
0 commit comments