Commit 222bed9b authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman
Browse files

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: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f84839da
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -605,6 +605,7 @@ static int ci_hdrc_remove(struct platform_device *pdev)
	dbg_remove_files(ci);
	free_irq(ci->irq, ci);
	ci_role_destroy(ci);
	kfree(ci->hw_bank.regmap);

	return 0;
}