]> git.baikalelectronics.ru Git - kernel.git/commit
radeon/kms: fix dma relocation checking
authorJerome Glisse <jglisse@redhat.com>
Wed, 9 Jan 2013 21:40:42 +0000 (16:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Jan 2013 22:05:38 +0000 (17:05 -0500)
commit4a8819282c5e435c9b46eecb8442245a71a9a6c8
tree3f5256256b89fe06c94a23fa8f29fb792799ea15
parentd4a16486e5a77083d60779db9a2112e49753c043
radeon/kms: fix dma relocation checking

We were checking the index against the size of the relocation buffer
instead of against the last index. This fix kernel segfault when
userspace submit ill formated command stream/relocation buffer pair.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600_cs.c