summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/pfc-sh7734.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-07-15 13:36:39 +0200
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-07-29 15:17:41 +0200
commita1a3580cb322f71cc5aa7e9180ffb6df609b530d (patch)
treed98850bc5c26316ccd44f16410d2898ef357848f /drivers/pinctrl/sh-pfc/pfc-sh7734.c
parentsh-pfc: Remove unused GPIO_PORT_ALL macro (diff)
downloadlinux-a1a3580cb322f71cc5aa7e9180ffb6df609b530d.tar.xz
linux-a1a3580cb322f71cc5aa7e9180ffb6df609b530d.zip
sh-pfc: Don't overallocate memory for the GPIO chip pins array
The GPIO driver uses an array of sh_pfc_gpio_pin structures to store per-GPIO pin data. The array size is miscomputed at allocation time by using the number of the last pin instead of the number of pins. When the pin space contains holes this leads to memory overallocation. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-sh7734.c')
0 files changed, 0 insertions, 0 deletions