Skip to content

Commit

Permalink
mfd: Fix a memory leak when unload mc13xxx-core module
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Oct 28, 2010
1 parent 7484552 commit cef92fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/mc13xxx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,8 @@ static int __devexit mc13xxx_remove(struct spi_device *spi)

mfd_remove_devices(&spi->dev);

kfree(mc13xxx);

return 0;
}

Expand Down

0 comments on commit cef92fe

Please sign in to comment.