diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2019-08-29 10:29:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-04 13:35:11 +0200 |
commit | 5672ff4dc3898b6b74c114de2f53e667ab5a0327 (patch) | |
tree | 4cf773321c2c36af5c5ce55c401bbaf0d233273c /drivers/sn | |
parent | 15fe27f3162ee47c0363cd8cf53b351823479063 (diff) | |
download | linux-stable-5672ff4dc3898b6b74c114de2f53e667ab5a0327.tar.gz linux-stable-5672ff4dc3898b6b74c114de2f53e667ab5a0327.tar.bz2 linux-stable-5672ff4dc3898b6b74c114de2f53e667ab5a0327.zip |
misc: fastrpc: fix double refcounting on dmabuf
dma buf refcount has to be done by the driver which is going to use the fd.
This driver already does refcount on the dmabuf fd if its actively using it
but also does an additional refcounting via extra ioctl.
This additional refcount can lead to memory leak in cases where the
applications fail to call the ioctl to decrement the refcount.
So remove this extra refcount in the ioctl
More info of dma buf usage at drivers/dma-buf/dma-buf.c
Reported-by: Mayank Chopra <mak.chopra@codeaurora.org>
Reported-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Tested-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20190829092926.12037-5-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/sn')
0 files changed, 0 insertions, 0 deletions