Messages in this thread Patch in this message | | | From | Colin King <> | Subject | [PATCH] mfd: omap-usb-tll: allocate correct size for ch_clk | Date | Mon, 10 Feb 2014 19:10:07 +0000 |
| |
From: Colin Ian King <colin.king@canonical.com>
ch_clk was erroneously being allocated the incorrect size which can be problematic for larger sizes of tll->nch
Signed-off-by: Colin Ian King <colin.king@canonical.com> --- drivers/mfd/omap-usb-tll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.c index 5ee50f7..532eacab 100644 --- a/drivers/mfd/omap-usb-tll.c +++ b/drivers/mfd/omap-usb-tll.c @@ -252,7 +252,7 @@ static int usbtll_omap_probe(struct platform_device *pdev) break; } - tll->ch_clk = devm_kzalloc(dev, sizeof(struct clk * [tll->nch]), + tll->ch_clk = devm_kzalloc(dev, sizeof(struct clk *) * tll->nch, GFP_KERNEL); if (!tll->ch_clk) { ret = -ENOMEM; -- 1.9.rc1
| |