* [PATCH] zram: free device memory when init fails
@ 2010-08-28 7:09 Shahar Havivi
0 siblings, 0 replies; only message in thread
From: Shahar Havivi @ 2010-08-28 7:09 UTC (permalink / raw)
To: linux-next; +Cc: linux-kernel, greg
Signed-off-by: Shahar Havivi <shaharh@redhat.com>
---
drivers/staging/zram/zram_drv.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c
index 77d4d71..e8d2319 100644
--- a/drivers/staging/zram/zram_drv.c
+++ b/drivers/staging/zram/zram_drv.c
@@ -769,6 +769,7 @@ static int __init zram_init(void)
free_devices:
while (dev_id)
destroy_device(&devices[--dev_id]);
+ kfree(devices);
unregister:
unregister_blkdev(zram_major, "zram");
out:
--
1.7.2.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-28 7:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-28 7:09 [PATCH] zram: free device memory when init fails Shahar Havivi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.