pstore: Correct the max_dump_cnt clearing of ramoops
authorLiu ShuoX <shuox.liu@intel.com>
Mon, 17 Mar 2014 21:07:00 +0000 (14:07 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 17 Mar 2014 21:14:03 +0000 (14:14 -0700)
commit34f0ec82e0a99009161a281629280cfcad187696
tree82bce069d90f410ff589473b351978c0162e1177
parentb0aa931fb84431394d995472d0af2a6c2b61064d
pstore: Correct the max_dump_cnt clearing of ramoops

In case that ramoops_init_przs failed, max_dump_cnt won't be reset to
zero in error handle path.

Signed-off-by: Liu ShuoX <shuox.liu@intel.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/ram.c