Re: [PATCH v6 1/3] devres: provide devm_krealloc()

2020-08-03 Thread Bartosz Golaszewski
On Sun, Aug 2, 2020 at 12:42 PM Andy Shevchenko wrote: > [snip] > > I was thinking about this bit... Shouldn't we rather issue a simple > dev_warn() and return the existing pointer? > For example in some cases we might want to have resources coming > either from heap or from constant. Then, if

Re: [PATCH v6 1/3] devres: provide devm_krealloc()

2020-08-02 Thread Andy Shevchenko
On Sun, Aug 2, 2020 at 11:37 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Implement the managed variant of krealloc(). This function works with > all memory allocated by devm_kmalloc() (or devres functions using it > implicitly like devm_kmemdup(), devm_kstrdup() etc.). > >