linux/drivers/staging/vt6656
Ben Hutchings 1ee4c55fc9 staging: vt6656: Fix inconsistent structure packing
vt6656 has several headers that use the #pragma pack(1) directive to
enable structure packing, but never disable it.  The layout of
structures defined in other headers can then depend on which order the
various headers are included in, breaking the One Definition Rule.

In practice this resulted in crashes on x86_64 until the order of header
inclusion was changed for some files in commit 11d404cb56 ('staging:
vt6656: fix headers and add cfg80211.').  But we need a proper fix that
won't be affected by future changes to the order of inclusion.

This removes the #pragma pack(1) directives and adds __packed to the
structure definitions for which packing appears to have been intended.

Reported-and-tested-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-17 13:08:32 -08:00
..
80211hdr.h
80211mgr.c staging: vt6656: fix headers and add cfg80211. 2012-11-26 16:23:42 -08:00
80211mgr.h
aes_ccmp.c
aes_ccmp.h
baseband.c
baseband.h
bssdb.c staging: vt6656: remove redundant IWEVCUSTOM events. 2012-11-26 16:24:16 -08:00
bssdb.h staging: vt6656: Fix inconsistent structure packing 2013-01-17 13:08:32 -08:00
card.c
card.h
channel.c
channel.h
control.c
control.h
country.h
datarate.c
datarate.h
desc.h staging: vt6656: 64bit fixes: desh.h fix size. replace DWORD with u32. 2012-11-13 12:51:30 -08:00
device_cfg.h
device.h staging: vt6656: dead code removal : wpactl.c/h 2012-11-26 16:24:16 -08:00
dpc.c staging: vt6656: remove wpahdr from driver. 2012-11-26 16:24:16 -08:00
dpc.h
firmware.c
firmware.h
hostap.c
hostap.h
int.c
int.h staging: vt6656: Fix inconsistent structure packing 2013-01-17 13:08:32 -08:00
iocmd.h staging: vt6656: Fix inconsistent structure packing 2013-01-17 13:08:32 -08:00
iowpa.h staging: vt6656: Fix inconsistent structure packing 2013-01-17 13:08:32 -08:00
iwctl.c staging: vt6656: wpa_set_keys remove fcpfkernel 2012-11-26 16:24:16 -08:00
iwctl.h staging: vt6656: move move all commands to iw_handler. 2012-11-26 16:24:15 -08:00
Kconfig
key.c staging: vt6656: fix headers and add cfg80211. 2012-11-26 16:23:42 -08:00
key.h staging: vt6656: 64bit fixes: key.c/h change unsigned long to u32 2012-11-13 12:51:31 -08:00
mac.c staging: vt6656: 64 bit fixes: fix long warning messages. 2012-11-13 12:51:31 -08:00
mac.h
main_usb.c staging: vt6656: remove redundant IWEVCUSTOM events. 2012-11-26 16:24:16 -08:00
Makefile staging: vt6656: dead code remove ioctl.c/h 2012-11-26 16:24:16 -08:00
mib.c staging: vt6656: dead code remove upc.h 2012-11-13 12:45:43 -08:00
mib.h staging: vt6656: dead code byCntMeasure/TKIPCounterMeasuresInvoked 2012-11-13 12:45:43 -08:00
michael.c
michael.h
power.c
power.h
rc4.c
rc4.h
rf.c
rf.h
rndis.h
rxtx.c staging: vt6656: 64 bit fixes pdwIV is now u32 2012-11-13 12:51:31 -08:00
rxtx.h staging: vt6656: 64 bit fixes: rxtx.h Replace DWORD with u32. 2012-11-13 12:51:30 -08:00
srom.h
tcrc.c
tcrc.h
tether.c
tether.h
tkip.c staging: vt6656: 64 bit fixes TKIPvMixKey remove unsigned long 2012-11-13 12:51:31 -08:00
tkip.h
tmacro.h
TODO
ttype.h staging: vt6656: 64 bit fixes : correct all type sizes 2012-11-13 12:51:31 -08:00
usbpipe.c staging: vt6656: no need to bIndicateReceive when no bytes to read. 2012-11-13 12:45:43 -08:00
usbpipe.h
vntconfiguration.dat
wcmd.c staging: vt6656: send SIOCGIWSCAN at end of all scanning events. 2012-11-26 16:24:16 -08:00
wcmd.h
wctl.c
wctl.h
wmgr.c staging: vt6656: remove wpahdr from driver. 2012-11-26 16:24:16 -08:00
wmgr.h staging: vt6656: 64 bit fixes correct sizes of NDIS_802_11_ASSOCIATION_INFORMATION 2012-11-13 12:51:32 -08:00
wpa2.c staging: vt6656: fix headers and add cfg80211. 2012-11-26 16:23:42 -08:00
wpa2.h staging: vt6656: 64bit fixes: vCommandTimerWait change calculation of timer. 2012-11-13 12:51:32 -08:00
wpa.c
wpa.h
wpactl.c staging: vt6656: wpa_set_keys remove fcpfkernel 2012-11-26 16:24:16 -08:00
wpactl.h staging: vt6656: wpa_set_keys remove fcpfkernel 2012-11-26 16:24:16 -08:00