summaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@android.com>2015-01-13 23:32:35 +0100
committerTony Luck <tony.luck@intel.com>2015-01-17 00:45:46 +0100
commitff6bf6e8024f073ecea7dbf5c6afe6bd3872a569 (patch)
tree19ccfb518f56dafa8124f52c96ccdc195d440065 /fs/pstore
parentpstore: Use scnprintf() in pstore_mkfile() (diff)
downloadlinux-ff6bf6e8024f073ecea7dbf5c6afe6bd3872a569.tar.xz
linux-ff6bf6e8024f073ecea7dbf5c6afe6bd3872a569.zip
pstore: Remove superfluous memory size check
All previous checks will fail with error if memory size is not sufficient to register a zone, so this legacy check has become redundant. Signed-off-by: Mark Salyzyn <salyzyn@android.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore')
-rw-r--r--fs/pstore/ram.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 8613e5b35c22..34ed8f860e23 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -474,14 +474,6 @@ static int ramoops_probe(struct platform_device *pdev)
if (err)
goto fail_init_fprz;
- if (!cxt->przs && !cxt->cprz && !cxt->fprz) {
- pr_err("memory size too small, minimum is %zu\n",
- cxt->console_size + cxt->record_size +
- cxt->ftrace_size);
- err = -EINVAL;
- goto fail_cnt;
- }
-
cxt->pstore.data = cxt;
/*
* Console can handle any buffer size, so prefer LOG_LINE_MAX. If we
@@ -525,7 +517,6 @@ fail_buf:
kfree(cxt->pstore.buf);
fail_clear:
cxt->pstore.bufsize = 0;
-fail_cnt:
kfree(cxt->fprz);
fail_init_fprz:
kfree(cxt->cprz);