Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752375AbdLDRsp (ORCPT ); Mon, 4 Dec 2017 12:48:45 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33024 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbdLDRsl (ORCPT ); Mon, 4 Dec 2017 12:48:41 -0500 X-Google-Smtp-Source: AGs4zMbzMziiGc19W9a37XpN/KWqPvhhMPpZXQUL5bhWORN+TlWR8EuVCQx5g+7dGDPLHnjnxvwXxQ== From: Arvind Yadav To: wg@grandegger.com, mkl@pengutronix.de, michal.simek@xilinx.com, opendmb@gmail.com, f.fainelli@gmail.com, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: [PATCH 0/7 v2] net: Fix platform_get_irq's error checking Date: Mon, 4 Dec 2017 23:18:16 +0530 Message-Id: <1512409703-20881-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1264 Lines: 26 The platform_get_irq() function returns negative number if an error occurs, Zero if No irq is found and positive number if irq gets successful. platform_get_irq() error checking for only zero is not correct. Removed Other 3 patch which is not related to this series. Arvind Yadav (7): [PATCH 1/7 v2] net: bcmgenet: Fix platform_get_irq's error checking [PATCH 2/7 v2] net: ezchip: nps_enet: Fix platform_get_irq's error checking [PATCH 3/7 v2] can: xilinx: Fix platform_get_irq's error checking [PATCH 4/7 v2] net: ethernet: i825xx: Fix platform_get_irq's error checking [PATCH 5/7 v2] net: ethernet: natsemi: Fix platform_get_irq's error checking [PATCH 6/7 v2] net: ethernet: smsc: Fix platform_get_irq's error checking [PATCH 7/7 v2] net: fjes: Fix platform_get_irq's error checking drivers/net/can/xilinx_can.c | 4 ++++ drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- drivers/net/ethernet/ezchip/nps_enet.c | 4 ++-- drivers/net/ethernet/i825xx/sni_82596.c | 3 ++- drivers/net/ethernet/natsemi/jazzsonic.c | 5 +++++ drivers/net/ethernet/smsc/smc911x.c | 5 +++++ drivers/net/fjes/fjes_main.c | 5 +++++ 7 files changed, 24 insertions(+), 4 deletions(-) -- 2.7.4