linux-uconsole/drivers
Ben Hutchings 42e29fded9 staging: vt6656: Fix inconsistent structure packing
commit 1ee4c55fc9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-21 11:45:00 -08:00
..
accessibility
acpi ACPI : do not use Lid and Sleep button for S5 wakeup 2013-01-17 08:43:58 -08:00
amba
ata libata: fix Null pointer dereference on disk error 2013-01-17 08:43:54 -08:00
atm solos-pci: fix double-free of TX skb in DMA mode 2013-01-11 09:03:49 -08:00
auxdisplay
base PM / Runtime: Clear power.deferred_resume on success in rpm_suspend() 2012-10-02 09:47:40 -07:00
bcma bcma: fix unregistration of cores 2012-10-31 09:51:37 -07:00
block drbd: add missing part_round_stats to _drbd_start_io_acct 2013-01-21 11:44:59 -08:00
bluetooth Bluetooth: ath3k: Add support for VAIO VPCEH [0489:e027] 2013-01-11 09:03:49 -08:00
cdrom cdrom: use copy_to_user() without the underscores 2012-02-29 16:34:35 -08:00
char tpm: Propagate error from tpm_transmit to fix a timeout hang 2012-10-21 09:17:12 -07:00
clk
clocksource
connector
cpufreq cpufreq / powernow-k8: Remove usage of smp_processor_id() in preemptible code 2012-10-31 09:51:37 -07:00
cpuidle
crypto crypto: mv_cesa requires on CRYPTO_HASH to build 2012-05-21 09:40:03 -07:00
dca
dio
dma dmaengine: at_hdmac: check that each sg data length is non-null 2012-10-02 09:47:37 -07:00
edac amd64_edac:__amd64_set_scrub_rate(): avoid overindexing scrubrates[] 2012-10-28 10:02:12 -07:00
eisa
firewire firewire: net: Fix handling of fragmented multicast/broadcast packets. 2013-01-17 08:43:53 -08:00
firmware firmware: Add missing attributes to EFI variable attribute print out from sysfs 2012-10-07 08:27:25 -07:00
gpio pch_gpio: Support new device LAPIS Semiconductor ML7831 IOH 2012-05-21 09:40:05 -07:00
gpu Revert "drm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13" 2013-01-17 08:44:13 -08:00
hid HID: add more hotkeys in Asus AIO keyboards 2012-04-02 09:27:12 -07:00
hwmon x86,AMD: Power driver support for AMD's family 16h processors 2012-12-17 10:49:02 -08:00
hwspinlock hwspinlock/core: use a mutex to protect the radix tree 2011-11-11 09:36:31 -08:00
i2c i2c: davinci: Free requested IRQ in remove 2012-06-01 15:13:01 +08:00
ide block: add and use scsi_blk_cmd_ioctl 2012-01-25 17:24:54 -08:00
idle intel_idle: fix API misuse 2012-01-25 17:24:56 -08:00
ieee802154
infiniband rtnetlink: Compute and store minimum ifinfo dump size 2013-01-17 08:43:58 -08:00
input Input: walkera0701 - fix crash on startup 2013-01-11 09:03:38 -08:00
isdn bas_gigaset: fix pre_reset handling 2012-12-03 12:59:15 -08:00
leds Revert "leds: save the delay values after a successful call to blink_set()" 2011-11-21 14:31:19 -08:00
lguest
macintosh
mca
md dm ioctl: prevent unsafe change to dm_ioctl data_size 2013-01-17 08:43:56 -08:00
media media: au0828: fix case where STREAMOFF being called on stopped stream causes BUG() 2012-10-28 10:02:12 -07:00
memstick
message
mfd mfd: Only unregister platform devices allocated by the mfd core 2013-01-17 08:43:54 -08:00
misc drivers/misc/sgi-xp/xpc_uv.c: SGI XPC fails to load when cpu 0 is out of IRQ resources 2012-10-02 09:47:40 -07:00
mmc mmc: sdhci-s3c: fix the wrong number of max bus clocks 2012-12-03 12:59:16 -08:00
mtd mtd: slram: invalid checking of absolute end address 2012-12-03 12:59:13 -08:00
net i2400m: add Intel 6150 device IDs 2013-01-17 08:43:55 -08:00
nfc
nubus
of
oprofile oprofile: perf: use NR_CPUS instead or nr_cpumask_bits for static array 2012-07-16 08:47:48 -07:00
parisc
parport
pci intel-iommu: Prevent devices with RMRRs from being placed into SI Domain 2013-01-21 11:44:59 -08:00
pcmcia pcmcia: sharpsl: don't discard sharpsl_pcmcia_ops 2012-10-28 10:02:11 -07:00
platform acer-wmi: support for P key on TM8372 2012-12-03 12:59:15 -08:00
pnp pnpacpi: fix incorrect TEST_ALPHA() test 2013-01-11 09:03:36 -08:00
power drivers/power/ds2780_battery.c: fix deadlock upon insertion and removal 2011-11-11 09:36:32 -08:00
pps
ps3
ptp ptp: Fix clock_getres() implementation 2011-12-21 12:57:36 -08:00
rapidio
regulator regulator: Fix the logic to ensure new voltage setting in valid range 2012-05-21 09:39:58 -07:00
rtc drivers/rtc/rtc-vt8500.c: fix handling of data passed in struct rtc_time 2013-01-11 09:03:49 -08:00
s390 s390/cio: fix pgid reserved check 2013-01-17 08:43:53 -08:00
sbus
scsi SCSI: qla2xxx: Test and clear FCPORT_UPDATE_NEEDED atomically. 2013-01-17 08:43:54 -08:00
sfi
sh
sn
spi spi/spi-fsl-spi: reference correct pdata in fsl_spi_cs_control 2012-10-02 09:47:54 -07:00
ssb ssb: fix init regression with SoCs 2012-01-06 14:13:48 -08:00
staging staging: vt6656: Fix inconsistent structure packing 2013-01-21 11:45:00 -08:00
target tcm_fc: Do not report target role when target is not defined 2013-01-21 11:44:58 -08:00
tc
telephony telephony: ijx: buffer overflow in ixj_write_cid() 2012-12-17 10:49:03 -08:00
thermal
tty serial:ifx6x60:Delete SPI timer when shut down port 2013-01-21 11:45:00 -08:00
uio
usb USB: option: blacklist network interface on ONDA MT8205 4G LTE 2013-01-21 11:45:00 -08:00
uwb uwb: fix error handling 2012-04-27 09:51:06 -07:00
vhost vhost: fix mergeable bufs on BE hosts 2012-10-31 09:51:36 -07:00
video video: mxsfb: fix crash when unblanking the display 2013-01-17 08:43:57 -08:00
virtio virtio: force vring descriptors to be allocated from lowmem 2013-01-11 09:03:36 -08:00
vlynq
w1 drivers/power/ds2780_battery.c: add a nolock function to w1 interface 2011-11-11 09:36:32 -08:00
watchdog hpwdt: Fix kdump issue in hpwdt 2012-10-02 09:47:27 -07:00
xen xen/xenbus: Add quirk to deal with misconfigured backends. 2012-04-27 09:51:05 -07:00
zorro zorro: Defer device_register() until all devices have been identified 2011-10-03 11:40:57 -07:00
Kconfig
Makefile