projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd86055
)
s390/scm_blk: fix memleak in init function
author
Sebastian Ott
<
[email protected]
>
Thu, 25 Apr 2013 11:03:18 +0000
(13:03 +0200)
committer
Martin Schwidefsky
<
[email protected]
>
Fri, 26 Apr 2013 07:07:17 +0000
(09:07 +0200)
If the allocation of a single request fails the already allocated
requests will not be freed.
Reviewed-by: Peter Oberparleiter <
[email protected]
>
Signed-off-by: Sebastian Ott <
[email protected]
>
Signed-off-by: Martin Schwidefsky <
[email protected]
>
drivers/s390/block/scm_blk.c
patch
|
blob
|
history
diff --git
a/drivers/s390/block/scm_blk.c
b/drivers/s390/block/scm_blk.c
index e9b9c83928325fc708b72df751d51c08bf7bde82..b303cab76a7f3787149837fdd3223b6d04c7d7bb 100644
(file)
--- a/
drivers/s390/block/scm_blk.c
+++ b/
drivers/s390/block/scm_blk.c
@@
-465,7
+465,7
@@
static int __init scm_blk_init(void)
scm_major = ret;
ret = scm_alloc_rqs(nr_requests);
if (ret)
- goto out_
unreg
;
+ goto out_
free
;
scm_debug = debug_register("scm_log", 16, 1, 16);
if (!scm_debug) {
@@
-486,7
+486,6
@@
out_dbf:
debug_unregister(scm_debug);
out_free:
scm_free_rqs();
-out_unreg:
unregister_blkdev(scm_major, "scm");
out:
return ret;