OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e693e4
)
Staging: zram: free device memory when init fails
author
Shahar Havivi
<shaharh@redhat.com>
Sat, 28 Aug 2010 07:09:05 +0000
(10:09 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sat, 4 Sep 2010 00:37:15 +0000
(17:37 -0700)
Signed-off-by: Shahar Havivi <shaharh@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zram/zram_drv.c
patch
|
blob
|
history
diff --git
a/drivers/staging/zram/zram_drv.c
b/drivers/staging/zram/zram_drv.c
index
77d4d71
..
722c840
100644
(file)
--- 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: