Commit 7eca80c
netdev-dpdk: Fix device info return value check.
rte_eth_dev_info_get() could fail due to device reset, etc.
The return value should be checked before the device info
pointer is dereferenced.
Fixes: 2f196c8 ("netdev-dpdk: Use LSC interrupt mode.")
Signed-off-by: Jay Ding <[email protected]>
Co-Authored-by: Kevin Traynor <[email protected]>
Signed-off-by: Kevin Traynor <[email protected]>
Acked-by: Mike Pattrick <[email protected]>
Acked-by: Eelco Chaudron <[email protected]>1 parent d21e097 commit 7eca80c
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2301 | 2301 | | |
2302 | 2302 | | |
2303 | 2303 | | |
2304 | | - | |
2305 | 2304 | | |
2306 | 2305 | | |
2307 | 2306 | | |
| |||
2365 | 2364 | | |
2366 | 2365 | | |
2367 | 2366 | | |
2368 | | - | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
2369 | 2373 | | |
2370 | | - | |
2371 | | - | |
| 2374 | + | |
| 2375 | + | |
2372 | 2376 | | |
2373 | 2377 | | |
2374 | 2378 | | |
| |||
0 commit comments