atmel-mci: Fix memory leak in atmci_regs_show
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Fri, 19 Sep 2008 19:09:28 +0000 (21:09 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Sat, 20 Sep 2008 10:11:48 +0000 (12:11 +0200)
commitb17339a12c279d73869c74a37642035cd2f896f8
tree109ceb368815465b8ac332ba23aae3aee5c99a86
parent87e60f2b80202575a23fa1bf56c6eb3b419c480a
atmel-mci: Fix memory leak in atmci_regs_show

The debugfs hook atmci_regs_show allocates a temporary buffer for
storing a register snapshot, but it doesn't free it before returning.
Plug this leak.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/atmel-mci.c