From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755891Ab2CWXh7 (ORCPT ); Fri, 23 Mar 2012 19:37:59 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:51500 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753488Ab2CWXh6 convert rfc822-to-8bit (ORCPT ); Fri, 23 Mar 2012 19:37:58 -0400 MIME-Version: 1.0 In-Reply-To: <20120322.233426.51094636300419378.davem@davemloft.net> References: <17d93e9eb16cbad75b20cdbcaf38f268260d6fd5.1332010469.git.joe@perches.com> <20120321.223457.641438956547942596.davem@davemloft.net> <20120322.233426.51094636300419378.davem@davemloft.net> Date: Fri, 23 Mar 2012 19:37:56 -0400 X-Google-Sender-Auth: hLzPe2ch9iePc3OB-F53aEzlbsY Message-ID: Subject: Re: [PATCH] gianfar: Fix possible overrun and simplify interrupt name field creation From: Paul Gortmaker To: David Miller Cc: joe@perches.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sandeep.kumar@freescale.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 22, 2012 at 11:34 PM, David Miller wrote: > From: David Miller > Date: Wed, 21 Mar 2012 22:34:57 -0400 (EDT) > >> From: Joe Perches >> Date: Sat, 17 Mar 2012 12:05:38 -0700 >> >>> Space allocated for int_name_ is unsufficient for >>> maximal device name, expand it. >>> >>> Code to create int_name_ is obscure, simplify it >>> by using sprintf. >>> >>> Found by looking for unnecessary \ line continuations. >>> Uncompiled, untested. >>> >>> Signed-off-by: Joe Perches >> >> Can a gianfar expert please review and test this patch? > > If you gianfar guys don't show a sign of life in the next 24 hours I'm > just going to apply Joe's patch as-is.  I refuse to just let it rot in > patchwork like this. > > And then you don't get to complain if his change breaks your driver > because I asked multiple times for testing and/or review. I don't claim to be a giant fart expert, but the sbc8641D has 4 of the gianfar ports, and so I can use that hardware to look into testing this on a real board and check that a cat /proc/interrupts doesn't do something evil this weekend. The patch looks sane in that it culls lines of open coded junk... FWIW. Paul.