aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-08-27 12:36:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-01 08:55:47 -0700
commit2864d3c11eced6708234b92186149f70748a85c4 (patch)
treede60366b3db695eefdab7c3691afa2abe63db0b9 /drivers/parisc
parentd8dcb2c6f47bab3dfd8059e58a3641b37ca70c30 (diff)
downloadkernel_samsung_smdk4412-2864d3c11eced6708234b92186149f70748a85c4.zip
kernel_samsung_smdk4412-2864d3c11eced6708234b92186149f70748a85c4.tar.gz
kernel_samsung_smdk4412-2864d3c11eced6708234b92186149f70748a85c4.tar.bz2
drm/radeon: fix handling of variable sized arrays for router objects
commit fb93df1c2d8b3b1fb16d6ee9e32554e0c038815d upstream. The table has the following format: typedef struct _ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT //usSrcDstTableOffset pointing to this structure { UCHAR ucNumberOfSrc; USHORT usSrcObjectID[1]; UCHAR ucNumberOfDst; USHORT usDstObjectID[1]; }ATOM_SRC_DST_TABLE_FOR_ONE_OBJECT; usSrcObjectID[] and usDstObjectID[] are variably sized, so we can't access them directly. Use pointers and update the offset appropriately when accessing the Dst members. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parisc')
0 files changed, 0 insertions, 0 deletions