Commit 4af1b64
octeontx2-pf: Fix lmtst ID used in aura free
Current code uses per_cpu pointer to get the lmtst_id mapped to
the core on which aura_free() is executed. Using per_cpu pointer
without preemption disable causing mismatch between lmtst_id and
core on which pointer gets freed. This patch fixes the issue by
disabling preemption around aura_free.
Fixes: ef6c8da ("octeontx2-pf: cn10K: Reserve LMTST lines per core")
Signed-off-by: Sunil Goutham <[email protected]>
Signed-off-by: Geetha sowjanya <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 9c80796 commit 4af1b64
1 file changed
+21
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
| 1015 | + | |
1015 | 1016 | | |
1016 | 1017 | | |
1017 | 1018 | | |
| |||
1031 | 1032 | | |
1032 | 1033 | | |
1033 | 1034 | | |
| 1035 | + | |
1034 | 1036 | | |
1035 | 1037 | | |
1036 | 1038 | | |
| |||
1368 | 1370 | | |
1369 | 1371 | | |
1370 | 1372 | | |
| 1373 | + | |
1371 | 1374 | | |
1372 | 1375 | | |
1373 | 1376 | | |
| |||
1376 | 1379 | | |
1377 | 1380 | | |
1378 | 1381 | | |
1379 | | - | |
1380 | | - | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
1381 | 1386 | | |
1382 | 1387 | | |
1383 | | - | |
1384 | | - | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1385 | 1391 | | |
1386 | 1392 | | |
1387 | 1393 | | |
1388 | 1394 | | |
1389 | 1395 | | |
1390 | | - | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
1391 | 1400 | | |
1392 | 1401 | | |
1393 | 1402 | | |
| |||
1426 | 1435 | | |
1427 | 1436 | | |
1428 | 1437 | | |
| 1438 | + | |
1429 | 1439 | | |
1430 | 1440 | | |
1431 | 1441 | | |
1432 | 1442 | | |
1433 | | - | |
1434 | | - | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1435 | 1446 | | |
1436 | 1447 | | |
1437 | 1448 | | |
1438 | 1449 | | |
1439 | | - | |
1440 | | - | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1441 | 1453 | | |
1442 | 1454 | | |
1443 | 1455 | | |
| |||
0 commit comments