drm/ttm: Read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 3 Aug 2009 12:22:53 +0000 (14:22 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2009 03:41:05 +0000 (13:41 +1000)
commitc96e7c7a3a79931446ecf9494a8415e4d164ebd8
tree5c809a9214cb85b862b0e2c24b6e21c422dd128e
parentfa99239cb73dbf419bea9f334b85ba94ac88a532
drm/ttm: Read buffer overflow

Check whether index is within bounds before grabbing the element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c