Skip to contentSkip to conversation

staging: vt6656: 64 bit- Correctly address void structure.

PATCH In review Malcolm Priestley 1 participant 1 message Nov 11, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/14 staging: vt6656: 64 bit- Correctly address void structure.

Fixes 64 bit deadlock on successful association.

---
 drivers/staging/vt6656/rxtx.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/staging/vt6656/rxtx.c +4 -6
index ca05c4f..d121285 100644
@@ -1452,12 +1452,10 @@ s_bPacketToWirelessUsb(
 
 
     pvRrvTime = pMICHDR = pvRTS = pvCTS = pvTxDataHd = NULL;
-    if ((bNeedEncryption) && (pTransmitKey != NULL))  {
-        if (((PSKeyTable) (pTransmitKey->pvKeyTable))->bSoftWEP == TRUE) {
-            // WEP 256
-            bSoftWEP = TRUE;
-        }
-    }
+	if (bNeedEncryption && pTransmitKey->pvKeyTable) {
+		if (((PSKeyTable)&pTransmitKey->pvKeyTable)->bSoftWEP == TRUE)
+			bSoftWEP = TRUE; /* WEP 256 */
+	}
 
     pTxBufHead = (PTX_BUFFER) usbPacketBuf;
     memset(pTxBufHead, 0, sizeof(TX_BUFFER));
Signature · 1 line
1.8.0