Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753029AbcJKOrz (ORCPT ); Tue, 11 Oct 2016 10:47:55 -0400 Received: from mail-vk0-f46.google.com ([209.85.213.46]:36843 "EHLO mail-vk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751917AbcJKOrb (ORCPT ); Tue, 11 Oct 2016 10:47:31 -0400 MIME-Version: 1.0 In-Reply-To: References: <1475904515-24970-1-git-send-email-joelaf@google.com> <1475904515-24970-4-git-send-email-joelaf@google.com> From: Joel Fernandes Date: Tue, 11 Oct 2016 07:46:38 -0700 Message-ID: Subject: Re: [PATCH 3/7] pstore: Remove case of PSTORE_TYPE_PMSG write using deprecated function To: Kees Cook Cc: LKML , Steven Rostedt , Anton Vorontsov , Colin Cross , 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: 588 Lines: 14 On Mon, Oct 10, 2016 at 4:52 PM, Kees Cook wrote: > On Fri, Oct 7, 2016 at 10:28 PM, Joel Fernandes wrote: >> PMSG now uses ramoops_pstore_write_buf_user instead of ramoops_pstore_write_buf >> Remove the case where we check PSTORE_TYPE_PMSG case. > > Ah yeah, good point. Can you actually improve this to add a > ratelimited WARN() to both _write_buf and write_buf_user when an > unhandled type is encountered? Sure, I'll add that. I'll also use the kcalloc as you suggest in the other thread and add module parameter, DT entry. Thanks, Joel