From: Laurent Pinchart Date: Mon, 15 Jul 2013 11:36:39 +0000 (+0200) Subject: sh-pfc: Don't overallocate memory for the GPIO chip pins array X-Git-Tag: v3.12-rc1~151^2~71^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1a3580cb322f71cc5aa7e9180ffb6df609b530d;p=pandora-kernel.git 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 Tested-by: Yusuke Goda --- Reading git-diff-tree failed