]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()
authorAxel Lin <axel.lin@gmail.com>
Sat, 16 Jun 2012 13:25:11 +0000 (21:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Jun 2012 23:30:42 +0000 (16:30 -0700)
commit6427a302d55906ec893d204781a419f29d873c25
tree9bfad45dcb1e1556ca851d986dfc86eb065c2fc2
parentcb188380baf78d7ad2b300aad588024638668387
extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()

extcon_dev_unregister(info->edev) doest not free info->edev, we need to call
kfree(info->edev) here.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-max8997.c