Commit b10e064
misc: fastrpc: Rework fastrpc_req_munmap
[ Upstream commit 72fa6f7 ]
Move the lookup of the munmap request to the fastrpc_req_munmap and pass
on only the buf to the lower level fastrpc_req_munmap_impl. That way
we can use the lower level fastrpc_req_munmap_impl on error path in
fastrpc_req_mmap to free the buf without searching for the munmap
request it belongs to.
Co-developed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221125071405.148786-7-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 6102ceb ("misc: fastrpc: Remove buffer from list prior to unmap operation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 75d593f commit b10e064
1 file changed
Lines changed: 25 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1389 | 1389 | | |
1390 | 1390 | | |
1391 | 1391 | | |
1392 | | - | |
1393 | | - | |
| 1392 | + | |
1394 | 1393 | | |
1395 | 1394 | | |
1396 | | - | |
1397 | 1395 | | |
1398 | 1396 | | |
1399 | 1397 | | |
1400 | 1398 | | |
1401 | 1399 | | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | 1400 | | |
1417 | 1401 | | |
1418 | 1402 | | |
| |||
1438 | 1422 | | |
1439 | 1423 | | |
1440 | 1424 | | |
| 1425 | + | |
1441 | 1426 | | |
| 1427 | + | |
1442 | 1428 | | |
1443 | 1429 | | |
1444 | 1430 | | |
1445 | 1431 | | |
1446 | | - | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1447 | 1448 | | |
1448 | 1449 | | |
1449 | 1450 | | |
| |||
1452 | 1453 | | |
1453 | 1454 | | |
1454 | 1455 | | |
1455 | | - | |
1456 | 1456 | | |
1457 | 1457 | | |
1458 | 1458 | | |
| |||
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | | - | |
| 1503 | + | |
| 1504 | + | |
1504 | 1505 | | |
1505 | 1506 | | |
1506 | 1507 | | |
| |||
1514 | 1515 | | |
1515 | 1516 | | |
1516 | 1517 | | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
| 1518 | + | |
| 1519 | + | |
1522 | 1520 | | |
1523 | 1521 | | |
1524 | 1522 | | |
1525 | 1523 | | |
1526 | 1524 | | |
1527 | 1525 | | |
1528 | 1526 | | |
1529 | | - | |
1530 | | - | |
| 1527 | + | |
| 1528 | + | |
1531 | 1529 | | |
1532 | 1530 | | |
1533 | 1531 | | |
| |||
0 commit comments