All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh-pfc: sh_pfc_probe() sizeof() fix
@ 2013-02-14 12:23 Magnus Damm
  2013-02-14 12:26 ` Laurent Pinchart
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Magnus Damm @ 2013-02-14 12:23 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Fix sizeof() usage in sh-pfc/core.c to allocate space
for the full data structure instead of a pointer.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 Written against -next in renesas.git

 drivers/pinctrl/sh-pfc/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 0001/drivers/pinctrl/sh-pfc/core.c
+++ work/drivers/pinctrl/sh-pfc/core.c	2013-02-14 21:04:20.000000000 +0900
@@ -495,7 +495,7 @@ static int sh_pfc_probe(struct platform_
 	if (info = NULL)
 		return -ENODEV;
 
-	pfc = devm_kzalloc(&pdev->dev, sizeof(pfc), GFP_KERNEL);
+	pfc = devm_kzalloc(&pdev->dev, sizeof(*pfc), GFP_KERNEL);
 	if (pfc = NULL)
 		return -ENOMEM;
 

^ permalink raw reply	[flat|nested] 10+ messages in thread
* GIT PULL] Renesas ARM-based SoC pinmux for v3.9 #2
@ 2013-02-16  2:25 Simon Horman
  2013-02-16  2:25   ` Simon Horman
  0 siblings, 1 reply; 10+ messages in thread
From: Simon Horman @ 2013-02-16  2:25 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Olof, Hi Arnd,

The following changes since commit c3323806a67c0c656e27956b7340e37ba6c6968b:

  sh-pfc: Move sh_pfc.h from include/linux/ to driver directory (2013-01-25 09:24:31 +0900)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-pinmux2-for-v3.9

for you to fetch changes up to 8c43fcc7804fc4609ccd9fa021e21f5423db9d96:

  sh-pfc: sh_pfc_probe() sizeof() fix (2013-02-16 10:58:50 +0900)

----------------------------------------------------------------
Bug fix from Magnus that resolves a regression introduced in pfc changes
queued up for 3.9.

----------------------------------------------------------------
Magnus Damm (1):
      sh-pfc: sh_pfc_probe() sizeof() fix

 drivers/pinctrl/sh-pfc/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-02-16  6:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14 12:23 [PATCH] sh-pfc: sh_pfc_probe() sizeof() fix Magnus Damm
2013-02-14 12:26 ` Laurent Pinchart
2013-02-14 12:27 ` Magnus Damm
2013-02-14 12:27 ` Laurent Pinchart
2013-02-14 15:56 ` Simon Horman
2013-02-15  1:47 ` Magnus Damm
2013-02-15 19:46 ` Linus Walleij
2013-02-16  6:14 ` Simon Horman
2013-02-16  2:25 GIT PULL] Renesas ARM-based SoC pinmux for v3.9 #2 Simon Horman
2013-02-16  2:25 ` [PATCH] sh-pfc: sh_pfc_probe() sizeof() fix Simon Horman
2013-02-16  2:25   ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.