diff options
| author | Jiang Liu <[email protected]> | 2013-06-07 00:07:24 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-06-06 12:12:20 -0700 |
| commit | 39a9b8ac9333e4268ecff7da6c9d1ab3823ff243 (patch) | |
| tree | e202fca393aa082b767f9c1235c4c60d6a2d8120 /tools/perf/scripts/python | |
| parent | 57ab048532c0d975538cebd4456491b5c34248f4 (diff) | |
zram: destroy all devices on error recovery path in zram_init()
On error recovery path of zram_init(), it leaks the zram device object
causing the failure. So change create_device() to free allocated
resources on error path.
Signed-off-by: Jiang Liu <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Acked-by: Jerome Marchand <[email protected]>
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions