misc: fastrpc: copy to user only for non-DMA-BUF heap buffers
authorJeya R <jeyr@codeaurora.org>
Thu, 23 Sep 2021 08:37:52 +0000 (14:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 14:11:03 +0000 (16:11 +0200)
commit847afd7bd5607ca974e562d7b2b8f800c4594fe6
tree35df8da61bffa6c72c5aa8b86b25932c5a9a928a
parent304b0ba0a21b216683bc887d18dc5ad8d7d94752
misc: fastrpc: copy to user only for non-DMA-BUF heap buffers

fastrpc_put_args is copying all the output buffers to user. For large
number of output context buffers, this might cause performance
degradation. Copying is not needed for DMA-BUF heap buffers.

Signed-off-by: Jeya R <jeyr@codeaurora.org>
Link: https://lore.kernel.org/r/1632386272-18139-1-git-send-email-jeyr@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/fastrpc.c