Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 5fdeb0d ("net: qrtr: Implement outgoing flow control") Reported-by: [email protected] Signed-off-by: Loic Poulain <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information