Commit 72fa6f7
misc: fastrpc: Rework fastrpc_req_munmap
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>1 parent 334f1a1 commit 72fa6f7
1 file changed
+23
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1627 | 1627 | | |
1628 | 1628 | | |
1629 | 1629 | | |
1630 | | - | |
1631 | | - | |
| 1630 | + | |
1632 | 1631 | | |
1633 | 1632 | | |
1634 | | - | |
1635 | 1633 | | |
1636 | 1634 | | |
1637 | 1635 | | |
1638 | 1636 | | |
1639 | 1637 | | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | 1638 | | |
1655 | 1639 | | |
1656 | 1640 | | |
| |||
1676 | 1660 | | |
1677 | 1661 | | |
1678 | 1662 | | |
| 1663 | + | |
1679 | 1664 | | |
| 1665 | + | |
1680 | 1666 | | |
1681 | 1667 | | |
1682 | 1668 | | |
1683 | 1669 | | |
1684 | | - | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
1685 | 1686 | | |
1686 | 1687 | | |
1687 | 1688 | | |
| |||
1690 | 1691 | | |
1691 | 1692 | | |
1692 | 1693 | | |
1693 | | - | |
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
| |||
1752 | 1752 | | |
1753 | 1753 | | |
1754 | 1754 | | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
| 1755 | + | |
| 1756 | + | |
1760 | 1757 | | |
1761 | 1758 | | |
1762 | 1759 | | |
1763 | 1760 | | |
1764 | 1761 | | |
1765 | 1762 | | |
1766 | 1763 | | |
| 1764 | + | |
| 1765 | + | |
1767 | 1766 | | |
1768 | 1767 | | |
1769 | 1768 | | |
| |||
0 commit comments