Re: [PATCH v1] mfd: core: Fix double-free in mfd_remove_devices_fn()

2020-08-24 Thread Marek Szyprowski
Hi On 18.08.2020 01:50, Dmitry Osipenko wrote: > The pdev.mfd_cell is released by platform_device_release(), which is > invoked by platform_device_unregister(). Hence mfd_remove_devices_fn() > shouldn't release the cell variable. The double-free bug is reported KASAN > during of MFD driver module

Re: [PATCH v1] mfd: core: Fix double-free in mfd_remove_devices_fn()

2020-08-24 Thread Lee Jones
On Mon, 24 Aug 2020, Marek Szyprowski wrote: > Hi > > On 18.08.2020 01:50, Dmitry Osipenko wrote: > > The pdev.mfd_cell is released by platform_device_release(), which is > > invoked by platform_device_unregister(). Hence mfd_remove_devices_fn() > > shouldn't release the cell variable. The double

Re: [PATCH v1] mfd: core: Fix double-free in mfd_remove_devices_fn()

2020-08-21 Thread Lee Jones
On Tue, 18 Aug 2020, Dmitry Osipenko wrote: > The pdev.mfd_cell is released by platform_device_release(), which is > invoked by platform_device_unregister(). Hence mfd_remove_devices_fn() > shouldn't release the cell variable. The double-free bug is reported KASAN > during of MFD driver module rem