From ed3bf79dd4c04e51e29fbed5ae8695c84f18a529 Mon Sep 17 00:00:00 2001 From: Vivek Natarajan Date: Sun, 6 Jan 2019 07:05:43 +0530 Subject: [PATCH] qcacmn: Use htc_lock while accessing TxLookupQueue There are other places where txLookupQueue is protected with htc_lock instead of lookup_queue_lock. Change-Id: I91497ce4593a14033871d3e8c3a97deab222d365 --- htc/htc_send.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htc/htc_send.c b/htc/htc_send.c index 5acce1d86a..251ac9cb54 100644 --- a/htc/htc_send.c +++ b/htc/htc_send.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -1859,7 +1859,6 @@ static HTC_PACKET *htc_lookup_tx_packet(HTC_TARGET *target, */ HTC_PACKET_QUEUE_TRANSFER_TO_TAIL(&lookupQueue, &pEndpoint->TxLookupQueue); - UNLOCK_HTC_TX(target); ITERATE_OVER_LIST_ALLOW_REMOVE(&lookupQueue.QueueHead, pPacket, HTC_PACKET, ListLink) { @@ -1880,7 +1879,6 @@ static HTC_PACKET *htc_lookup_tx_packet(HTC_TARGET *target, } ITERATE_END; - LOCK_HTC_TX(target); HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxLookupQueue, &lookupQueue); UNLOCK_HTC_TX(target);