From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by ozlabs.org (Postfix) with ESMTP id 985E8B6F11 for ; Wed, 18 Nov 2009 11:35:19 +1100 (EST) Message-ID: <4B02EABA.3060905@grandegger.com> Date: Tue, 17 Nov 2009 19:26:02 +0100 From: Wolfgang Grandegger MIME-Version: 1.0 To: Wolfram Sang Subject: Re: [PATCH] net/can: add driver for mscan family & mpc52xx_mscan References: <1258128892-28800-1-git-send-email-w.sang@pengutronix.de> <20091116184416.GA21491@pengutronix.de> In-Reply-To: <20091116184416.GA21491@pengutronix.de> Content-Type: text/plain; charset=ISO-8859-1 Cc: socketcan-core@lists.berlios.de, David Miller , linuxppc-dev@ozlabs.org, netdev@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Wolfram Sang wrote: > Hi Grant, > > Wolfgang commented on some points already, I will pick up the other remarks, > just one question: > >>> + clk_src = of_get_property(np, "fsl,mscan-clk-src", NULL); >>> + if (clk_src && strcmp(clk_src, "ip") == 0) >> Should protect against non-null. strncmp() maybe? > > "ip" is null-terminated, or what do you mean? Imagine somebody defines: fsl,mscan-clk-src = <0xbaeee>; Wolfgang.