mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
[PATCH v2 2/5] 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> v2: renumber pmsg series dependencies Change-Id: Ie21c988ae0b1ebb0dafa6c0c0b069e9cfe1e8506
This commit is contained in:
parent
3797dc2dca
commit
b8cbc42905
|
|
@ -441,14 +441,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
|
||||
|
|
@ -493,7 +485,6 @@ static int ramoops_probe(struct platform_device *pdev)
|
|||
fail_clear:
|
||||
cxt->pstore.bufsize = 0;
|
||||
cxt->max_dump_cnt = 0;
|
||||
fail_cnt:
|
||||
kfree(cxt->fprz);
|
||||
fail_init_fprz:
|
||||
kfree(cxt->cprz);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user