Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-28 Thread Mathieu Poirier
On 18 March 2018 at 01:38, Arvind Yadav wrote: > Never directly free @dev after calling device_register(), even > if it returned an error. Always use put_device() to give up the > reference initialized. > > Signed-off-by: Arvind Yadav > --- >

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-28 Thread Mathieu Poirier
On 18 March 2018 at 01:38, Arvind Yadav wrote: > Never directly free @dev after calling device_register(), even > if it returned an error. Always use put_device() to give up the > reference initialized. > > Signed-off-by: Arvind Yadav > --- > drivers/hwtracing/coresight/coresight.c | 8

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-27 Thread Mathieu Poirier
On 27 March 2018 at 10:28, arvindY wrote: > > > On Tuesday 27 March 2018 09:37 PM, Mathieu Poirier wrote: >> >> On 26 March 2018 at 20:30, arvindY wrote: >>> >>> >>> On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote:

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-27 Thread Mathieu Poirier
On 27 March 2018 at 10:28, arvindY wrote: > > > On Tuesday 27 March 2018 09:37 PM, Mathieu Poirier wrote: >> >> On 26 March 2018 at 20:30, arvindY wrote: >>> >>> >>> On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: drivers/hwtracing/coresight/coresight.c On 18 March 2018

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-27 Thread arvindY
On Tuesday 27 March 2018 09:37 PM, Mathieu Poirier wrote: On 26 March 2018 at 20:30, arvindY wrote: On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: drivers/hwtracing/coresight/coresight.c On 18 March 2018 at 01:38, Arvind Yadav

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-27 Thread arvindY
On Tuesday 27 March 2018 09:37 PM, Mathieu Poirier wrote: On 26 March 2018 at 20:30, arvindY wrote: On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: drivers/hwtracing/coresight/coresight.c On 18 March 2018 at 01:38, Arvind Yadav wrote: Never directly free @dev after calling

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-27 Thread Mathieu Poirier
On 26 March 2018 at 20:30, arvindY wrote: > > > On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: >> >> drivers/hwtracing/coresight/coresight.c >> On 18 March 2018 at 01:38, Arvind Yadav wrote: >>> >>> Never directly free @dev after

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-27 Thread Mathieu Poirier
On 26 March 2018 at 20:30, arvindY wrote: > > > On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: >> >> drivers/hwtracing/coresight/coresight.c >> On 18 March 2018 at 01:38, Arvind Yadav wrote: >>> >>> Never directly free @dev after calling device_register(), even >>> if it returned an

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-26 Thread arvindY
On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: drivers/hwtracing/coresight/coresight.c On 18 March 2018 at 01:38, Arvind Yadav wrote: Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-26 Thread arvindY
On Tuesday 27 March 2018 03:16 AM, Mathieu Poirier wrote: drivers/hwtracing/coresight/coresight.c On 18 March 2018 at 01:38, Arvind Yadav wrote: Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give up the reference

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-26 Thread Mathieu Poirier
drivers/hwtracing/coresight/coresight.c On 18 March 2018 at 01:38, Arvind Yadav wrote: > Never directly free @dev after calling device_register(), even > if it returned an error. Always use put_device() to give up the > reference initialized. > > Signed-off-by: Arvind

Re: [PATCH] coresight: use put_device() instead of kfree()

2018-03-26 Thread Mathieu Poirier
drivers/hwtracing/coresight/coresight.c On 18 March 2018 at 01:38, Arvind Yadav wrote: > Never directly free @dev after calling device_register(), even > if it returned an error. Always use put_device() to give up the > reference initialized. > > Signed-off-by: Arvind Yadav > --- >

[PATCH] coresight: use put_device() instead of kfree()

2018-03-18 Thread Arvind Yadav
Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight.c | 8 1 file changed, 4 insertions(+),

[PATCH] coresight: use put_device() instead of kfree()

2018-03-18 Thread Arvind Yadav
Never directly free @dev after calling device_register(), even if it returned an error. Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- drivers/hwtracing/coresight/coresight.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git