[PATCH 08/11] clk: Avoid clock name collisions
Stephen Boyd
sboyd at codeaurora.org
Tue Sep 13 15:03:36 EDT 2011
On 08/24/11 06:15, Mark Brown wrote:
> + if (dev) {
> + name_len = strlen(name) + strlen(dev_name(dev)) + 2;
> + new_name = kzalloc(name_len, GFP_KERNEL);
> + if (!new_name)
> + goto err;
> +
> + snprintf(new_name, name_len, "%s-%s", dev_name(dev), name);
> +
Perhaps use kasprintf() instead?
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
More information about the linux-arm-kernel
mailing list