Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d61ac98a authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman
Browse files

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



The patch is wrong and is partially reverted.

The NULL check of pTransmitKey->pvKeyTable is kept.

The problem was ultimately fixed by upstream commit.
1ee4c55f
staging: vt6656: Fix inconsistent structure packing

Reported-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Cc: stable@vger.kernel.org # 3.8
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e404fff
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1232,7 +1232,7 @@ static int s_bPacketToWirelessUsb(struct vnt_private *pDevice, u8 byPktType,
	pvRrvTime = pMICHDR = pvRTS = pvCTS = pvTxDataHd = NULL;
	pvRrvTime = pMICHDR = pvRTS = pvCTS = pvTxDataHd = NULL;


	if (bNeedEncryption && pTransmitKey->pvKeyTable) {
	if (bNeedEncryption && pTransmitKey->pvKeyTable) {
		if (((PSKeyTable)&pTransmitKey->pvKeyTable)->bSoftWEP == TRUE)
		if (((PSKeyTable)pTransmitKey->pvKeyTable)->bSoftWEP == TRUE)
			bSoftWEP = TRUE; /* WEP 256 */
			bSoftWEP = TRUE; /* WEP 256 */
	}
	}