Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759469Ab2EVPco (ORCPT ); Tue, 22 May 2012 11:32:44 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:58157 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754131Ab2EVPcn (ORCPT ); Tue, 22 May 2012 11:32:43 -0400 MIME-Version: 1.0 In-Reply-To: <1337696279-8994-9-git-send-email-anton.vorontsov@linaro.org> References: <20120522141717.GA31574@lizard> <1337696279-8994-9-git-send-email-anton.vorontsov@linaro.org> Date: Tue, 22 May 2012 08:32:41 -0700 X-Google-Sender-Auth: BsUZfnSOIcIRHJhQbdYxHnmUZzc Message-ID: Subject: Re: [PATCH 09/16] pstore/ram: Factor ramoops_get_dump_prz() out of ramoops_pstore_read() From: Kees Cook To: Anton Vorontsov Cc: Greg Kroah-Hartman , Colin Cross , Tony Luck , Arnd Bergmann , John Stultz , Shuah Khan , arve@android.com, Rebecca Schultz Zavin , Jesper Juhl , Randy Dunlap , Stephen Boyd , Thomas Meyer , Andrew Morton , Marco Stornelli , WANG Cong , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 741 Lines: 21 On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > This will help make code clearer when we'll add support for other > message types. > > The patch also changes return value from -EINVAL to 0 in case of > end-of-records. The exact value doesn't matter for pstore (it should > be just <= 0), but 0 feels more correct. > > Signed-off-by: Anton Vorontsov Acked-by: Kees Cook -- Kees Cook Chrome OS Security -- 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/