Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756353AbcCCLO1 (ORCPT ); Thu, 3 Mar 2016 06:14:27 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:35500 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753905AbcCCLOY (ORCPT ); Thu, 3 Mar 2016 06:14:24 -0500 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> Cc: linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org From: Sergei Shtylyov Message-ID: <56D81C8C.3070903@cogentembedded.com> Date: Thu, 3 Mar 2016 14:14:20 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1456958018-7849-3-git-send-email-wsa@the-dreams.de> 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: 358 Lines: 14 Hello. On 3/3/2016 1:33 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 Acked-by: Sergei Shtylyov MBR, Sergei