]> www.infradead.org Git - users/dwmw2/linux.git/commit
misc: fastrpc: prevent memory leak in fastrpc_dma_buf_attach
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Wed, 25 Sep 2019 15:27:41 +0000 (10:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 16:22:14 +0000 (18:22 +0200)
commitfc739a058d99c9297ef6bfd923b809d85855b9a9
tree597aac8213b123a80d699b0c598fe5ac63ef4036
parentf8204f0ddd62966a0e79c2804963a21e3540dd82
misc: fastrpc: prevent memory leak in fastrpc_dma_buf_attach

In fastrpc_dma_buf_attach if dma_get_sgtable fails the allocated memory
for a should be released.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Link: https://lore.kernel.org/r/20190925152742.16258-1-navid.emamdoost@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/fastrpc.c