1
linux/arch/powerpc/sysdev
Grant Likely 622882455a powerpc/mpc5200: Bugfix on handling variable sized buffer descriptors
The buffer descriptors for the ATA BestComm task are larger than the
current definition for bcom_bd.  This causes problems because the
various bcom_... functions dereference the buffer descriptor pointer
by using the array operator which doesn't work when the buffer
descriptors are a different size.

This patch adds the bcom_get_bd() function which uses the value in
bcom_task.bd_size to calculate the offset into the BD table.  This
patch also changes the definition of bcom_bd to specify a data size
of 0 instead of 1 so that it will never work if anyone attempts to
dereference the bd list as an array (as opposed to something that
might work even though it is wrong).

Finally, this patch moves the definition of bcom_bd up in the file
to eliminate a forward declaration.

Based on patch originally written by Tim Yamin.

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2008-12-21 02:54:27 -07:00
..
bestcomm powerpc/mpc5200: Bugfix on handling variable sized buffer descriptors 2008-12-21 02:54:27 -07:00
qe_lib powerpc/qe: Move cmxgcr_lock definition from the ucc.c into the qe.c 2008-12-03 10:47:36 -06:00
6xx-suspend.S
axonram.c
cpm1.c powerpc/cpm1: Fix race condition in CPM1 GPIO library. 2008-09-16 13:43:24 -05:00
cpm2_pic.c
cpm2_pic.h
cpm2.c cpm2: Rework baud rate generators configuration to support external clocks. 2008-07-28 08:47:45 -05:00
cpm_common.c cpm2: Fix race condition in CPM2 GPIO library. 2008-08-21 00:15:54 -05:00
dart_iommu.c
dart.h
dcr-low.S powerpc/4xx: Extended DCR support v2 2008-12-21 14:21:15 +11:00
dcr.c powerpc: Const-qualify Device Node Argument to DCR Resource Extent API 2008-12-21 14:21:16 +11:00
fsl_gtm.c
fsl_lbc.c powerpc: fix fsl_upm nand driver modular build 2008-10-13 11:48:24 -05:00
fsl_msi.c powerpc: Convert the FSL MSI code to use msi_bitmap 2008-08-20 16:34:58 +10:00
fsl_msi.h powerpc: Convert the FSL MSI code to use msi_bitmap 2008-08-20 16:34:58 +10:00
fsl_pci.c powerpc: Introduce ppc_pci_flags accessors 2008-12-16 15:53:16 +11:00
fsl_pci.h
fsl_rio.c
fsl_soc.c gianfar: Fix race in TBI/SerDes configuration 2008-10-31 00:59:46 -04:00
fsl_soc.h powerpc: remove support for bootmem-allocated memory for the DIU driver 2008-10-13 11:09:59 -05:00
grackle.c powerpc: Introduce ppc_pci_flags accessors 2008-12-16 15:53:16 +11:00
i8259.c
indirect_pci.c
ipic.c
ipic.h
Kconfig powerpc: Move 8xxx GPIO Kconfig under the platform menu 2008-09-23 23:36:32 -05:00
Makefile powerpc/4xx: Add PowerPC 4xx GPIO driver 2008-10-17 13:33:44 -04:00
micropatch.c
mmio_nvram.c
mpc8xx_pic.c
mpc8xx_pic.h
mpc8xxx_gpio.c powerpc: gpio driver for mpc8349/8572/8610 and compatible 2008-09-23 10:41:16 -05:00
mpic_msi.c powerpc: Convert the MPIC MSI code to use msi_bitmap 2008-08-20 16:34:58 +10:00
mpic_pasemi_msi.c powerpc: Convert the MPIC MSI code to use msi_bitmap 2008-08-20 16:34:58 +10:00
mpic_u3msi.c powerpc: Convert the MPIC MSI code to use msi_bitmap 2008-08-20 16:34:58 +10:00
mpic.c Merge branch 'merge' 2008-12-03 20:11:06 +11:00
mpic.h powerpc: Convert the MPIC MSI code to use msi_bitmap 2008-08-20 16:34:58 +10:00
msi_bitmap.c powerpc: Split-out common MSI bitmap logic into msi_bitmap.c 2008-08-20 16:34:57 +10:00
mv64x60_dev.c mv643xx_eth: remove force_phy_addr field 2008-09-05 06:33:59 +02:00
mv64x60_pci.c
mv64x60_pic.c
mv64x60_udbg.c
mv64x60.h
of_rtc.c
pmi.c
ppc4xx_gpio.c powerpc/4xx: Add PowerPC 4xx GPIO driver 2008-10-17 13:33:44 -04:00
ppc4xx_pci.c powerpc/4xx: Add support for ISA holes on 4xx PCI/X/E 2008-12-04 08:02:19 -05:00
ppc4xx_pci.h
ppc4xx_soc.c
rtc_cmos_setup.c powerpc: rtc_cmos_setup: assign interrupts only if there is i8259 PIC 2008-07-28 08:47:38 -05:00
tsi108_dev.c
tsi108_pci.c
uic.c
xilinx_intc.c powerpc/virtex: fix various format/casting printk mismatches 2008-11-14 09:59:48 -07:00