From patchwork Wed Jun 3 09:43:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia-Ju Bai X-Patchwork-Id: 480675 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id AEB151401AF for ; Thu, 4 Jun 2015 22:38:54 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b=VBDU9A35; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id DDCA296029; Thu, 4 Jun 2015 12:38:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3W7Ak2xsFHw9; Thu, 4 Jun 2015 12:38:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3B48495F89; Thu, 4 Jun 2015 12:38:53 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 4D4831C0627 for ; Wed, 3 Jun 2015 09:59:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 47FB595578 for ; Wed, 3 Jun 2015 09:59:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hMq9LvZ9+Qpd for ; Wed, 3 Jun 2015 09:59:06 +0000 (UTC) X-Greylist: delayed 00:15:02 by SQLgrey-1.7.6 Received: from m12-12.163.com (m12-12.163.com [220.181.12.12]) by hemlock.osuosl.org (Postfix) with ESMTP id EFCD995563 for ; Wed, 3 Jun 2015 09:59:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=JXrHdlul0ksJ9hBsaR VJiKKDQjb0qlF5vpLY9O/Rd9M=; b=VBDU9A35Sp2TwS98phwRFVYjtsAgu1sSUl Jb1/Du4JIIQQ5FU2JmmS3HrrMd3phwNP+au49iUNhkslY1R8YTzZT3g6u81Cjagv u5RPJJe/2+9Udk8OnjFzVT36qi3bAQkbATcyzDkWNbuPg25VC1TEthJb9LTWRmst 9I2NKT5JE= Received: from bai-oslab.tsinghua.edu.cn (unknown [166.111.70.50]) by smtp8 (Coremail) with SMTP id DMCowECJ1U06zG5VEzncBQ--.8874S2; Wed, 03 Jun 2015 17:43:28 +0800 (CST) From: Jia-Ju Bai To: intel-wired-lan@lists.osuosl.org Date: Wed, 3 Jun 2015 17:43:24 +0800 Message-Id: <1433324604-11369-1-git-send-email-baijiaju1990@163.com> X-Mailer: git-send-email 1.7.9.5 X-CM-TRANSID: DMCowECJ1U06zG5VEzncBQ--.8874S2 X-Coremail-Antispam: 1Uf129KBjvdXoWruFyfuF43Aw4UAFy7KF4fAFb_yoWfZFXEkr 4Fvw1xtrW5JF1FyF47ArWfA34akFnrXFyFyFnaqa4fuw17Ar48Wryv9FnrXFs7G345uFZr J34aqFW3A3yY9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRRAR67UUUUU== X-Originating-IP: [166.111.70.50] X-CM-SenderInfo: xedlyx5dmximizq6il2tof0z/xtbBRQEOelO-vJdUEgAAsx X-Mailman-Approved-At: Thu, 04 Jun 2015 12:38:52 +0000 Cc: baijiaju1990@163.com Subject: [Intel-wired-lan] [PATCH] e1000e: Cleanup qos request in error handling of e1000_open X-BeenThere: intel-wired-lan@lists.osuosl.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-wired-lan-bounces@lists.osuosl.org Sender: "Intel-wired-lan" The driver lacks pm_qos_remove_request in error handling (err_req_irq) of e1000_open, and qos request inserted by pm_qos_add_request is not removed. This patch add pm_qos_remove_request in error handling to fix it. Signed-off-by: Jia-Ju Bai --- drivers/net/ethernet/intel/e1000e/netdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index c509a5c..f8c0dc4 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -4451,6 +4451,7 @@ static int e1000_open(struct net_device *netdev) return 0; err_req_irq: + pm_qos_remove_request(&adapter->pm_qos_req); e1000e_release_hw_control(adapter); e1000_power_down_phy(adapter); e1000e_free_rx_resources(adapter->rx_ring);