Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755208AbbBKEuL (ORCPT ); Tue, 10 Feb 2015 23:50:11 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:57114 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752149AbbBKEuJ (ORCPT ); Tue, 10 Feb 2015 23:50:09 -0500 MIME-Version: 1.0 In-Reply-To: <54DA3B0A.5000209@android.com> References: <1423564012-420-1-git-send-email-kumarsharma.r@gmail.com> <54DA3B0A.5000209@android.com> Date: Wed, 11 Feb 2015 10:20:08 +0530 Message-ID: Subject: Re: [RFC] pstore-ram: remove superfluous memory size check From: Kiran Kumar To: Mark Salyzyn Cc: linux-kernel@vger.kernel.org, Mark Salyzyn , Anton Vorontsov , Colin Cross , Kees Cook , Tony Luck Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2393 Lines: 72 On Tue, Feb 10, 2015 at 10:38 PM, Mark Salyzyn wrote: > > Please refer to '[PATCH v2 2/5] pstore: remove superfluous memory size check' Cool,thanks for pointing. Regards, Kiran > > Sincerely -- Mark Salyzyn > > On 02/10/2015 02:26 AM, Kiran Raparthy wrote: >> >> From: Mark Salyzyn >> >> 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 >> Cc: Colin Cross >> Cc: Kees Cook >> Cc: Tony Luck >> Cc: linux-kernel@vger.kernel.org >> Signed-off-by: Mark Salyzyn >> [Kiran: Added Context] >> Signed-off-by: Kiran Raparthy >> >> --- >> 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); > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/