net: qrtr: Stop rx_worker before freeing node
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 18 Sep 2019 17:21:17 +0000 (10:21 -0700)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sun, 22 Sep 2019 01:45:46 +0000 (18:45 -0700)
commit73f0c11d11329a0d6d205d4312b6e5d2512af7c5
tree74db95fed55a0ce2f3192a436713b5a6cd000b6a
parente47488b2df7f9cb405789c7f5d4c27909fc597ae
net: qrtr: Stop rx_worker before freeing node

As the endpoint is unregistered there might still be work pending to
handle incoming messages, which will result in a use after free
scenario. The plan is to remove the rx_worker, but until then (and for
stable@) ensure that the work is stopped before the node is freed.

Fixes: bdabad3e363d ("net: Add Qualcomm IPC router")
Cc: stable@vger.kernel.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/qrtr/qrtr.c