lkml.org 
[lkml]   [2013]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] pwm: devm: alloc correct pointer size
From
On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> The allocated object should be the size of what the pointer is pointing
> to and not the size of the pointer itself.

All devm_* functions in this module use **ptr as a parameter (except
allocation).
May be we first should understand why it so?
If it wrong approach, than probably you have to change **ptr -> *ptr.
But without answer on first question I don't know if it proper solution or not.

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2013-06-07 02:21    [W:0.055 / U:2.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site