lkml.org 
[lkml]   [2013]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] lpc_ich: use devres API to allocate private data

----- Original Message -----
> From: "Aaron Sierra" <asierra@xes-inc.com>
> To: "Samuel Ortiz" <sameo@linux.intel.com>
> Cc: "LKML" <linux-kernel@vger.kernel.org>
> Sent: Thursday, February 14, 2013 11:35:04 AM
> Subject: [PATCH] lpc_ich: use devres API to allocate private data
>
>
> Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
> ---

[trim]

> - priv = kmalloc(GFP_KERNEL, sizeof(struct lpc_ich_priv));
> + priv = devm_kzalloc(&dev->dev,
> + sizeof(struct lpc_ich_priv), GFP_KERNEL);

Samuel,
Perhaps this should now include a comment about this patch also resolving the issue that Anatol reported yesterday?

-Aaron


\
 
 \ /
  Last update: 2013-02-15 16:43    [W:0.082 / U:22.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site