From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18587C2BA83 for ; Thu, 13 Feb 2020 14:40:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DAFCA2073C for ; Thu, 13 Feb 2020 14:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581604826; bh=X+nVn/KllRbxZ51X+/sFqxu5WCy0rj3TcHJxSKDPpSo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=ZHERR0MXnx0DAPNwPZx/g5dNSes6wCbkxWUOx4jlrXhmugKyvGC+PtHtqDa+OZn/j 1VG0JQjeen6BrE2L8Eexyba8xWwZ8hpQsQHgHZx85uiKoG1IwGpSwRWbNlhz95cciM +WIQ268fBjbBRFImm67ORb3+cGeFMQrPynvLMVVU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726282AbgBMOk0 (ORCPT ); Thu, 13 Feb 2020 09:40:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:56480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgBMOk0 (ORCPT ); Thu, 13 Feb 2020 09:40:26 -0500 Received: from localhost (unknown [106.201.58.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF7252073C; Thu, 13 Feb 2020 14:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581604825; bh=X+nVn/KllRbxZ51X+/sFqxu5WCy0rj3TcHJxSKDPpSo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p7MseGzl4cyJlD/BjL+JTOZsiZNhdRCypvQe+RcAy0oSLK9TKUHVEgTRi8exKc4j5 GRVp9ZFeys5w7dYKmNXJH/mlXp11PEZk6PcJEkKPeqThwLAyDX3HIHW6CCH2V/ti7p /9XZzcOSEW1j+grY+8fEcoIJWVgBrjp3a2M8F5O0= Date: Thu, 13 Feb 2020 20:10:21 +0530 From: Vinod Koul To: Dave Jiang Cc: dmaengine@vger.kernel.org, jerry.t.chen@intel.com Subject: Re: [PATCH] dmaengine: idxd: fix runaway module ref count on device driver bind Message-ID: <20200213144021.GJ2618@vkoul-mobl> References: <158144296730.41381.12134210685456322434.stgit@djiang5-desk3.ch.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <158144296730.41381.12134210685456322434.stgit@djiang5-desk3.ch.intel.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 11-02-20, 10:42, Dave Jiang wrote: > idxd_config_bus_probe() calls try_module_get() but never calls module_put() > when it fails. Thus with every failed attempt, the ref count goes up. Add > module_put() in failure paths. Applied, thanks -- ~Vinod