Re: [patch] nouveau: off by one in nv50_gpio_location()

2010-06-02 Thread Ben Skeggs
On Thu, 2010-04-22 at 11:40 +0200, Dan Carpenter wrote: If gpio-line is 32 then nv50_gpio_reg[gpio-line 3] reads past the end of the array. Thanks, picked up in the nouveau tree. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/drivers/gpu/drm/nouveau/nv50_gpio.c

[patch] nouveau: off by one in nv50_gpio_location()

2010-04-22 Thread Dan Carpenter
If gpio-line is 32 then nv50_gpio_reg[gpio-line 3] reads past the end of the array. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/drivers/gpu/drm/nouveau/nv50_gpio.c b/drivers/gpu/drm/nouveau/nv50_gpio.c index c61782b..bb47ad7 100644 --- a/drivers/gpu/drm/nouveau/nv50_gpio.c +++