Commit 13327ed
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 03a1225 commit 13327ed
1 file changed
Lines changed: 23 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1657 | 1657 | | |
1658 | 1658 | | |
1659 | 1659 | | |
1660 | | - | |
1661 | | - | |
| 1660 | + | |
1662 | 1661 | | |
1663 | 1662 | | |
1664 | | - | |
1665 | 1663 | | |
1666 | 1664 | | |
1667 | 1665 | | |
1668 | 1666 | | |
1669 | 1667 | | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | 1668 | | |
1685 | 1669 | | |
1686 | 1670 | | |
| |||
1706 | 1690 | | |
1707 | 1691 | | |
1708 | 1692 | | |
| 1693 | + | |
1709 | 1694 | | |
| 1695 | + | |
1710 | 1696 | | |
1711 | 1697 | | |
1712 | 1698 | | |
1713 | 1699 | | |
1714 | | - | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
1715 | 1716 | | |
1716 | 1717 | | |
1717 | 1718 | | |
| |||
1720 | 1721 | | |
1721 | 1722 | | |
1722 | 1723 | | |
1723 | | - | |
1724 | 1724 | | |
1725 | 1725 | | |
1726 | 1726 | | |
| |||
1782 | 1782 | | |
1783 | 1783 | | |
1784 | 1784 | | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
| 1785 | + | |
| 1786 | + | |
1790 | 1787 | | |
1791 | 1788 | | |
1792 | 1789 | | |
1793 | 1790 | | |
1794 | 1791 | | |
1795 | 1792 | | |
1796 | 1793 | | |
| 1794 | + | |
| 1795 | + | |
1797 | 1796 | | |
1798 | 1797 | | |
1799 | 1798 | | |
| |||
0 commit comments