Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757069Ab2FPNVd (ORCPT ); Sat, 16 Jun 2012 09:21:33 -0400 Received: from mga11.intel.com ([192.55.52.93]:19067 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756723Ab2FPNVc (ORCPT ); Sat, 16 Jun 2012 09:21:32 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="166436019" Date: Sat, 16 Jun 2012 21:21:24 +0800 From: Fengguang Wu To: Kay Sievers Cc: Yuanhan Liu , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH 2/2] printk: return -EINVAL if the message len is bigger than the buf size Message-ID: <20120616132124.GB12272@localhost> References: <1339821655-14059-1-git-send-email-yuanhan.liu@linux.intel.com> <1339821655-14059-2-git-send-email-yuanhan.liu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 589 Lines: 17 On Sat, Jun 16, 2012 at 02:50:53PM +0200, Kay Sievers wrote: > On Sat, Jun 16, 2012 at 6:40 AM, Yuanhan Liu > wrote: > > Just like what devkmsg_read() does, return -EINVAL if the message len is > > bigger than the buf size, or it will trigger a segfault error. > > Looks good to me. Me too :) Thanks, Fengguang -- 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/