Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-29 Thread Bartosz Golaszewski
On Tue, Sep 29, 2020 at 10:49 AM Andy Shevchenko wrote: > > On Tue, Sep 29, 2020 at 08:10:10AM +, David Laight wrote: > > From: Joe Perches > > > Sent: 28 September 2020 17:07 > > > > > > On Mon, 2020-09-28 at 18:02 +0200, Bartosz Golaszewski wrote: > > > > On Mon, Sep 28, 2020 at 5:59 PM Joe

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-29 Thread Andy Shevchenko
On Tue, Sep 29, 2020 at 08:10:10AM +, David Laight wrote: > From: Joe Perches > > Sent: 28 September 2020 17:07 > > > > On Mon, 2020-09-28 at 18:02 +0200, Bartosz Golaszewski wrote: > > > On Mon, Sep 28, 2020 at 5:59 PM Joe Perches wrote: > > > > On Mon, 2020-09-28 at 12:41 +0200, Bartosz

RE: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-29 Thread David Laight
From: Joe Perches > Sent: 28 September 2020 17:07 > > On Mon, 2020-09-28 at 18:02 +0200, Bartosz Golaszewski wrote: > > On Mon, Sep 28, 2020 at 5:59 PM Joe Perches wrote: > > > On Mon, 2020-09-28 at 12:41 +0200, Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > > > > >

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Andy Shevchenko
On Mon, Sep 28, 2020 at 09:06:34AM -0700, Joe Perches wrote: > On Mon, 2020-09-28 at 18:02 +0200, Bartosz Golaszewski wrote: > > On Mon, Sep 28, 2020 at 5:59 PM Joe Perches wrote: > > > On Mon, 2020-09-28 at 12:41 +0200, Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > > > >

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Joe Perches
On Mon, 2020-09-28 at 18:02 +0200, Bartosz Golaszewski wrote: > On Mon, Sep 28, 2020 at 5:59 PM Joe Perches wrote: > > On Mon, 2020-09-28 at 12:41 +0200, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > There's a common pattern of dynamically allocating an array of char >

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Bartosz Golaszewski
On Mon, Sep 28, 2020 at 5:59 PM Joe Perches wrote: > > On Mon, 2020-09-28 at 12:41 +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > There's a common pattern of dynamically allocating an array of char > > pointers and then also dynamically allocating each string in this > >

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Joe Perches
On Mon, 2020-09-28 at 12:41 +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > There's a common pattern of dynamically allocating an array of char > pointers and then also dynamically allocating each string in this > array. Provide a helper for freeing such a string array with one

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Andy Shevchenko
On Mon, Sep 28, 2020 at 03:04:05PM +0200, Bartosz Golaszewski wrote: > On Mon, Sep 28, 2020 at 2:55 PM Andy Shevchenko > wrote: > > > > On Mon, Sep 28, 2020 at 12:41:47PM +0200, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > There's a common pattern of dynamically

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Bartosz Golaszewski
On Mon, Sep 28, 2020 at 2:55 PM Andy Shevchenko wrote: > > On Mon, Sep 28, 2020 at 12:41:47PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > There's a common pattern of dynamically allocating an array of char > > pointers and then also dynamically allocating each string

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Andy Shevchenko
On Mon, Sep 28, 2020 at 12:41:47PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > There's a common pattern of dynamically allocating an array of char > pointers and then also dynamically allocating each string in this > array. Provide a helper for freeing such a string array

[PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's a common pattern of dynamically allocating an array of char pointers and then also dynamically allocating each string in this array. Provide a helper for freeing such a string array with one call. Signed-off-by: Bartosz Golaszewski ---