lkml.org 
[lkml]   [2017]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/6] clk: ingenic: Add JZ47xx TCU clocks driver

[...]

> + tcu->clocks.clk_num = nb_clks;
> + tcu->clocks.clks = kcalloc(nb_clocks, sizeof(struct clk *),
> GFP_KERNEL);
> + if (!tcu->clocks.clks) {
> + pr_err("%s: cannot allocate memory\n", __func__);
> + goto err_free_tcu;
> + }

Facepalm. A quick edit from kzalloc to kcalloc and I managed to break
it.
It should be nb_clks not nb_clocks. I'll fix that in the V2.

-Paul

\
 
 \ /
  Last update: 2017-12-29 15:04    [W:0.087 / U:0.332 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site