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
This commit is contained in:

committed by
nshrivas

parent
95f004f879
commit
ed3bf79dd4
@@ -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
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* 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,
|
HTC_PACKET_QUEUE_TRANSFER_TO_TAIL(&lookupQueue,
|
||||||
&pEndpoint->TxLookupQueue);
|
&pEndpoint->TxLookupQueue);
|
||||||
UNLOCK_HTC_TX(target);
|
|
||||||
|
|
||||||
ITERATE_OVER_LIST_ALLOW_REMOVE(&lookupQueue.QueueHead, pPacket,
|
ITERATE_OVER_LIST_ALLOW_REMOVE(&lookupQueue.QueueHead, pPacket,
|
||||||
HTC_PACKET, ListLink) {
|
HTC_PACKET, ListLink) {
|
||||||
@@ -1880,7 +1879,6 @@ static HTC_PACKET *htc_lookup_tx_packet(HTC_TARGET *target,
|
|||||||
}
|
}
|
||||||
ITERATE_END;
|
ITERATE_END;
|
||||||
|
|
||||||
LOCK_HTC_TX(target);
|
|
||||||
HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxLookupQueue,
|
HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxLookupQueue,
|
||||||
&lookupQueue);
|
&lookupQueue);
|
||||||
UNLOCK_HTC_TX(target);
|
UNLOCK_HTC_TX(target);
|
||||||
|
Reference in New Issue
Block a user