From: Mark Salyzyn <salyzyn@android.com>
To: Kiran Raparthy <kumarsharma.r@gmail.com>, linux-kernel@vger.kernel.org
Cc: Mark Salyzyn <salyzyn@google.com>,
Anton Vorontsov <anton@enomsg.org>,
Colin Cross <ccross@android.com>,
Kees Cook <keescook@chromium.org>,
Tony Luck <tony.luck@intel.com>
Subject: Re: [RFC] pstore-ram: remove superfluous memory size check
Date: Tue, 10 Feb 2015 09:08:26 -0800 [thread overview]
Message-ID: <54DA3B0A.5000209@android.com> (raw)
In-Reply-To: <1423564012-420-1-git-send-email-kumarsharma.r@gmail.com>
Please refer to '[PATCH v2 2/5] pstore: remove superfluous memory size
check'
Sincerely -- Mark Salyzyn
On 02/10/2015 02:26 AM, Kiran Raparthy wrote:
> From: Mark Salyzyn <salyzyn@google.com>
>
> pstore-ram: 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.
>
> Cc: Anton Vorontsov <anton@enomsg.org>
> Cc: Colin Cross <ccross@android.com>
> Cc: Kees Cook <keescook@chromium.org>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: linux-kernel@vger.kernel.org
> Signed-off-by: Mark Salyzyn <salyzyn@android.com>
> [Kiran: Added Context]
> Signed-off-by: Kiran Raparthy <kumarsharma.r@gmail.com>
>
> ---
> This is one of the number of patches from the Android AOSP common.git tree,
> which is used on Android devices. I wanted to submit it for review
> to see if it should go upstream.
> [PATCH v2 2/5] pstore: remove superfluous memory size check
> fs/pstore/ram.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
> index 8613e5b..34ed8f8 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);
next prev parent reply other threads:[~2015-02-10 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-10 10:26 [RFC] pstore-ram: remove superfluous memory size check Kiran Raparthy
2015-02-10 17:08 ` Mark Salyzyn [this message]
2015-02-11 4:50 ` Kiran Kumar
2015-02-12 16:54 ` Tony Luck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54DA3B0A.5000209@android.com \
--to=salyzyn@android.com \
--cc=anton@enomsg.org \
--cc=ccross@android.com \
--cc=keescook@chromium.org \
--cc=kumarsharma.r@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=salyzyn@google.com \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.