pstore/ram: fix error return code in ramoops_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 11:39:20 +0000 (19:39 +0800)
committerTony Luck <tony.luck@intel.com>
Wed, 8 May 2013 17:24:48 +0000 (10:24 -0700)
commit47110b88912a997f25d42373e339804d51da98de
tree6641f4e44c016130c116fbb7d03c2772072d1ea7
parenteeb65d9cb5159752e672b5164110838bb5936a4a
pstore/ram: fix error return code in ramoops_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/ram.c