Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753281AbcDCW2v (ORCPT ); Sun, 3 Apr 2016 18:28:51 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:34336 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752919AbcDCW2t (ORCPT ); Sun, 3 Apr 2016 18:28:49 -0400 Subject: Re: [PATCH 2/6] net: ethernet: renesas: ravb_main: test clock rate to avoid division by 0 To: Wolfram Sang , linux-kernel@vger.kernel.org References: <1456958018-7849-1-git-send-email-wsa@the-dreams.de> <1456958018-7849-3-git-send-email-wsa@the-dreams.de> <20160403213641.GA24129@katana> Cc: linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, David Miller From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: <5701991C.4020904@cogentembedded.com> Date: Mon, 4 Apr 2016 01:28:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160403213641.GA24129@katana> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 406 Lines: 16 On 04/04/2016 12:36 AM, Wolfram Sang wrote: >> From: Wolfram Sang >> >> The clk API may return 0 on clk_get_rate, so we should check the result before >> using it as a divisor. >> >> Signed-off-by: Wolfram Sang > > Ping. http://patchwork.ozlabs.org/patch/591160/ I have no idea why it's marked this way... Dave? MBR, Sergei