mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-25 17:53:34 -05:00
usb: chipidea: Fix memleak for ci->hw_bank.regmap when removal
It needs to free ci->hw_bank.regmap explicitly since it is not managed resource. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f84839daa7
commit
222bed9b2d
1 changed files with 1 additions and 0 deletions
|
@ -605,6 +605,7 @@ static int ci_hdrc_remove(struct platform_device *pdev)
|
||||||
dbg_remove_files(ci);
|
dbg_remove_files(ci);
|
||||||
free_irq(ci->irq, ci);
|
free_irq(ci->irq, ci);
|
||||||
ci_role_destroy(ci);
|
ci_role_destroy(ci);
|
||||||
|
kfree(ci->hw_bank.regmap);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue