diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2021-03-30 16:11:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-30 13:48:29 -0700 |
commit | 8a03dd925786bdc3834d56ccc980bb70668efa35 (patch) | |
tree | 22f74cffa0d2b3adfef7bf683aa9e6c447c4fd37 /net/sched | |
parent | 6855e8213e06efcaf7c02a15e12b1ae64b9a7149 (diff) |
net: qrtr: Fix memory leak on qrtr_tx_wait failure
qrtr_tx_wait does not check for radix_tree_insert failure, causing
the 'flow' object to be unreferenced after qrtr_tx_wait return. Fix
that by releasing flow on radix_tree_insert failure.
Fixes: 5fdeb0d372ab ("net: qrtr: Implement outgoing flow control")
Reported-by: syzbot+739016799a89c530b32a@syzkaller.appspotmail.com
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions