aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorSergey Senozhatsky <[email protected]>2014-04-07 22:38:20 +0000
committerLinus Torvalds <[email protected]>2014-04-07 23:36:02 +0000
commitfcfa8d95cacf5cbbe6dee6b8d229fe86142266e0 (patch)
treeac63d65c9d0c9d8831eec5f07b4c491b18559d0c /fs/proc/array.c
parentzram: move comp allocation out of init_lock (diff)
downloadkernel-fcfa8d95cacf5cbbe6dee6b8d229fe86142266e0.tar.gz
kernel-fcfa8d95cacf5cbbe6dee6b8d229fe86142266e0.zip
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 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions