On Mon, Oct 26, 2020 at 4:02 PM Andy Shevchenko <[email protected]> wrote: > > On Mon, Oct 26, 2020 at 4:22 PM Bartosz Golaszewski <[email protected]> wrote: > > > > From: Bartosz Golaszewski <[email protected]> > > > > We can simplify the error path in probe() and drop remove() entirely if > > we provide a devm action for freeing the device ID. > > Always the same question to IDR/IDA users: > does it guarantee that when the driver is gone the IDR/IDA resources are > freed? > > (It's not directly related to this patch, though) >
Yes because there's exactly one ida_free(id) per id = ida_alloc() here. Bartosz

