drm/savage: off by one in savage_bci_cmdbuf()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Jul 2018 09:48:10 +0000 (12:48 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Jul 2018 12:27:01 +0000 (14:27 +0200)
commit968d72e6a5105a18fe17c0a8b4ef2951d0eb42dd
tree85d40a1738372201cfee757e252022772c1047ec
parent4dd3cdb281f7a3200234ed2bcaae79af15f120d2
drm/savage: off by one in savage_bci_cmdbuf()

The > should be >= here so that we don't read beyond the end of the
dma->buflist[] array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180704094810.whrgn6jxe7uibnfv@kili.mountain
drivers/gpu/drm/savage/savage_state.c