Revision 5a6e8482a16e61250a9121fc9ec719ab0529e760 authored by Alex Deucher on 19 October 2011, 00:10:05 UTC, committed by Dave Airlie on 19 October 2011, 08:47:47 UTC
FB scratch indices are dword indices, but we were treating them as byte indices. As such, we were getting the wrong FB scratch data for non-0 indices. Fix the indices and guard the indexing against indices larger than the scratch allocation. Fixes memory corruption on some boards if data was written past the end of the FB scratch array. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reported-by: Dave Airlie <airlied@redhat.com> Tested-by: Dave Airlie <airlied@redhat.com> Cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent a4863ca
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 3.5 KB |
Makefile | -rw-r--r-- | 248 bytes |
amd_iommu.c | -rw-r--r-- | 64.2 KB |
amd_iommu_init.c | -rw-r--r-- | 39.5 KB |
amd_iommu_proto.h | -rw-r--r-- | 1.8 KB |
amd_iommu_types.h | -rw-r--r-- | 16.4 KB |
dmar.c | -rw-r--r-- | 34.3 KB |
intel-iommu.c | -rw-r--r-- | 99.3 KB |
intr_remapping.c | -rw-r--r-- | 16.8 KB |
intr_remapping.h | -rw-r--r-- | 340 bytes |
iommu.c | -rw-r--r-- | 2.9 KB |
iova.c | -rw-r--r-- | 11.5 KB |
msm_iommu.c | -rw-r--r-- | 16.8 KB |
msm_iommu_dev.c | -rw-r--r-- | 8.9 KB |
Computing file changes ...