]> 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)
commit8ac3b77d188a5eb7acf452285cb1830133dbe43c
tree9bfad45dcb1e1556ca851d986dfc86eb065c2fc2
parent77ef4a042da2aabc79ffd343731b78d320a5e17c
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