On Wed, Jun 22, 2022 at 08:37:43AM +0200, Jean Delvare wrote: > The recently added support for EFCH MMIO regions introduced a memory > leak in that code path. The leak is caused by the fact that > release_resource() merely removes the resource from the tree but does > not free its memory. We need to call release_mem_region() instead, > which does free the memory. As a nice side effect, this brings back > some symmetry between the legacy and MMIO paths. > > Signed-off-by: Jean Delvare <jdelvare@xxxxxxx> > Reported-by: Yi Zhang <yi.zhang@xxxxxxxxxx> > Tested-by: Yi Zhang <yi.zhang@xxxxxxxxxx> > Fixes: 7c148722d074 ("i2c: piix4: Add EFCH MMIO support to region request and release") > Cc: Terry Bowman <terry.bowman@xxxxxxx> Applied to for-current with Terry's tags given to v1, thanks!
Attachment:
signature.asc
Description: PGP signature