Messages in this thread | | | Date | Thu, 6 Jun 2013 22:43:41 +0300 | Subject | Re: [PATCH] pwm: devm: alloc correct pointer size | From | Andy Shevchenko <> |
| |
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
| |