Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-10 Thread Thierry Reding
On Mon, Jun 10, 2013 at 09:41:52AM +0300, Andy Shevchenko wrote: > On Mon, Jun 10, 2013 at 3:04 AM, Wolfram Sang wrote: > > On Thu, Jun 06, 2013 at 10:43:41PM +0300, Andy Shevchenko wrote: > >> On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang wrote: > >> > The allocated object should be the size of

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-10 Thread Andy Shevchenko
On Mon, Jun 10, 2013 at 3:04 AM, Wolfram Sang wrote: > On Thu, Jun 06, 2013 at 10:43:41PM +0300, Andy Shevchenko wrote: >> On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang wrote: >> > The allocated object should be the size of what the pointer is pointing >> > to and not the size of the pointer

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-10 Thread Andy Shevchenko
On Mon, Jun 10, 2013 at 3:04 AM, Wolfram Sang w...@the-dreams.de wrote: On Thu, Jun 06, 2013 at 10:43:41PM +0300, Andy Shevchenko wrote: On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang w...@the-dreams.de wrote: The allocated object should be the size of what the pointer is pointing to and not

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-10 Thread Thierry Reding
On Mon, Jun 10, 2013 at 09:41:52AM +0300, Andy Shevchenko wrote: On Mon, Jun 10, 2013 at 3:04 AM, Wolfram Sang w...@the-dreams.de wrote: On Thu, Jun 06, 2013 at 10:43:41PM +0300, Andy Shevchenko wrote: On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang w...@the-dreams.de wrote: The allocated

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-09 Thread Wolfram Sang
On Thu, Jun 06, 2013 at 10:43:41PM +0300, Andy Shevchenko wrote: > On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang 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

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-09 Thread Wolfram Sang
On Thu, Jun 06, 2013 at 10:43:41PM +0300, Andy Shevchenko wrote: On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang w...@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

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-06 Thread Andy Shevchenko
On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang 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

Re: [PATCH] pwm: devm: alloc correct pointer size

2013-06-06 Thread Andy Shevchenko
On Mon, Jun 3, 2013 at 11:27 PM, Wolfram Sang w...@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

[PATCH] pwm: devm: alloc correct pointer size

2013-06-03 Thread Wolfram Sang
The allocated object should be the size of what the pointer is pointing to and not the size of the pointer itself. Signed-off-by: Wolfram Sang --- drivers/pwm/core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index

[PATCH] pwm: devm: alloc correct pointer size

2013-06-03 Thread Wolfram Sang
The allocated object should be the size of what the pointer is pointing to and not the size of the pointer itself. Signed-off-by: Wolfram Sang w...@the-dreams.de --- drivers/pwm/core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c