[PATCH 3/3] drm/tegra: Check size of a submitted command buffer

Dmitry Osipenko digetx at gmail.com
Fri May 12 19:14:53 UTC 2017


On 12.05.2017 22:06, Erik Faye-Lund wrote:
> On Fri, May 12, 2017 at 9:02 PM, Dmitry Osipenko <digetx at gmail.com> wrote:
>> +               if (cmdbuf.words * 4 > gem->size) {
> 
> Shouldn't this be "cmdbuf.offset + cmdbuf.words * 4 > gem->size"?
> 

Seems yes, good catch. Thank you :)

-- 
Dmitry


More information about the dri-devel mailing list