aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorSergey Senozhatsky <[email protected]>2014-04-07 15:38:20 -0700
committerLinus Torvalds <[email protected]>2014-04-07 16:36:02 -0700
commitfcfa8d95cacf5cbbe6dee6b8d229fe86142266e0 (patch)
treeac63d65c9d0c9d8831eec5f07b4c491b18559d0c /tools/perf/scripts/python/bin/stackcollapse-record
parentd61f98c70e8b0d324e8e83be2ed546d6295e63f3 (diff)
zram: return error-valued pointer from zcomp_create()
Instead of returning just NULL, return ERR_PTR from zcomp_create() if compressing backend creation has failed. ERR_PTR(-EINVAL) for unsupported compression algorithm request, ERR_PTR(-ENOMEM) for allocation (zcomp or compression stream) error. Perform IS_ERR() check of returned from zcomp_create() value in disksize_store() and set return code to PTR_ERR(). Change suggested by Jerome Marchand. [[email protected]: clean up error recovery flow] Signed-off-by: Sergey Senozhatsky <[email protected]> Reported-by: Jerome Marchand <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Nitin Gupta <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions