pipe-loader: fix off-by one error
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Nov 2015 21:37:51 +0000 (21:37 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 25 Nov 2015 20:22:35 +0000 (20:22 +0000)
commitf6235171882d18d0b4d11a3d564c6aa3b22af9d1
treebecd26bb330575a0e29f278bfd9abb10ecf2cb03
parent0572e5fea57dc918ac40e5b06de33110738f717e
pipe-loader: fix off-by one error

With earlier commit we've dropped the manual iteration over the fixed
size array and prepemtively set the variable storing the size, that is
to be returned. Yet we forgot to adjust the comparison, as before we
were comparing the index, now we're comparing the size.

Fixes: ff9cd8a67ca "pipe-loader: directly use
pipe_loader_sw_probe_null() at probe time"
Cc: mesa-stable@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93091
Reported-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c