Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933529AbbHKCG6 (ORCPT ); Mon, 10 Aug 2015 22:06:58 -0400 Received: from mga09.intel.com ([134.134.136.24]:46040 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754983AbbHKCG4 convert rfc822-to-8bit (ORCPT ); Mon, 10 Aug 2015 22:06:56 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,649,1432623600"; d="scan'208";a="780900654" From: "Brown, Aaron F" To: Jia-Ju Bai , "Kirsher, Jeffrey T" , "Brandeburg, Jesse" CC: "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] igb: Fix a deadlock in igb_sriov_reinit Thread-Topic: [PATCH] igb: Fix a deadlock in igb_sriov_reinit Thread-Index: AQHQzZ3P45Y6c1J2U063TurooJgzn54GGViQ Date: Tue, 11 Aug 2015 02:06:54 +0000 Message-ID: <309B89C4C689E141A5FF6A0C5FB2118B81AE3594@ORSMSX101.amr.corp.intel.com> References: <1438572986-32708-1-git-send-email-baijiaju1990@163.com> In-Reply-To: <1438572986-32708-1-git-send-email-baijiaju1990@163.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 23 > From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org] > On Behalf Of Jia-Ju Bai > Sent: Sunday, August 02, 2015 8:36 PM > To: Kirsher, Jeffrey T; Brandeburg, Jesse > Cc: intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux- > kernel@vger.kernel.org; Jia-Ju Bai > Subject: [PATCH] igb: Fix a deadlock in igb_sriov_reinit > > When igb_init_interrupt_scheme in igb_sriov_reinit is failed, the lock > acquired by rtnl_lock() is not released, which causes a deadlock. > This patch adds rtnl_unlock() in error handling to fix it. > > Signed-off-by: Jia-Ju Bai > --- > drivers/net/ethernet/intel/igb/igb_main.c | 1 + > 1 file changed, 1 insertion(+) Tested-by: Aaron Brown -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/