Any local process can publish a server for the WLFW service through the QRTR name service, which records it on the local node. ath11k_qmi_ops_new_server() connects to every server the lookup reports and starts the QMI handshake with it, so that process takes the place of the firmware, including the REQUEST_MEM indication whose handler frees the DMA memory that the running firmware writes into. The WLFW service is provided by the firmware on a remote QRTR node. Ignore servers on the local node. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Cc: stable@vger.kernel.org Signed-off-by: Julius Bairaktaris --- drivers/net/wireless/ath/ath11k/qmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/qmi.c b/drivers/net/wireless/ath/ath11k/qmi.c index 7dc07339b9579..c4e4b9c5ec0da 100644 --- a/drivers/net/wireless/ath/ath11k/qmi.c +++ b/drivers/net/wireless/ath/ath11k/qmi.c @@ -3172,6 +3172,10 @@ static int ath11k_qmi_ops_new_server(struct qmi_handle *qmi_hdl, struct sockaddr_qrtr *sq = &qmi->sq; int ret; + /* WLFW is served by the firmware, never by the local node */ + if (service->node == qmi_hdl->sq.sq_node) + return -EINVAL; + sq->sq_family = AF_QIPCRTR; sq->sq_node = service->node; sq->sq_port = service->port; -- 2.53.0