Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp236915imm; Tue, 3 Jul 2018 18:03:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc+5T7CtQ5GlpROVljf+I0ZLgYhS/YDP+bZ977iN7NgcXSxAx+G+EWYpbmlovJi8+XFFaSr X-Received: by 2002:a62:40dc:: with SMTP id f89-v6mr31562706pfd.194.1530666215061; Tue, 03 Jul 2018 18:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530666215; cv=none; d=google.com; s=arc-20160816; b=JQc8vs9Aoi1fBM6NOU1yJXM1IBGix8yZtVZwDTskyYRvykOSjS+s6LYJxTIsyLXac+ Kwiq36i/5Cd3CRLz93EOSb1vTQ1JOi8qQWg3U2mz85kE+S494gweHz84q/bXoyLt5+4i qKT9wOsvl57hoxRlcZIvB+9A6gOs6r2KdFoj3Puq3c/dQ7HRLCd0rmdG/3qlyJzuT8Su TlqYmfEWE6gNaLP2euAD+80Y5arxOSTWbSDKAJ3XlXdncQLlRqFsLf11rmbyfu0+W8cS YO5il5elOtBVUKRnc9B4ojbunWGCd9EGHiGVqTgBkFdQZqBN4W/fdLdEbVSdnJZpirhs aAZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=oEnm1rpMLtGFDTboJmi3XE3mjDev+8cc0HhYFlpQ0vI=; b=iDNT7q+GqX7Fw6K/OSAELQrRlq7pMBB8DFfhODDxfnIHkkA0nB+gCrZ5wFu/PW9slJ zDmK97vTgylSCkxLYSKQlmM9spJJAIxellZs2Z5TO1gujmwHXkQHU+LF4CS1+SWnoIHm bp/1wSqoDHmYw+pP6eUMweZTvLP6bAFkKKawnWT4C7EmoIHWJvPB6lQD7ISQIM0uFlw0 mWUIP+ntbqvRLIMDR40gLLdUNdr2FxYKPtZsTaWFtoT0t1j2PmLGF7kSo85Ym5JTm9/v 0kwho2IQcpRD1wUX4JyjyxrSHCK62liqfLk31Ljc9DUiE6SeN+WOrD3f/7jH15eyEM70 JQrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Kbjy9bX8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26-v6si2177620pgo.169.2018.07.03.18.03.07; Tue, 03 Jul 2018 18:03:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Kbjy9bX8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753542AbeGDA7a (ORCPT + 99 others); Tue, 3 Jul 2018 20:59:30 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:18323 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753119AbeGDA73 (ORCPT ); Tue, 3 Jul 2018 20:59:29 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20180704005928epoutp03674e433b69d2738f9d543a34cec848ae~_BJaOCsO42667826678epoutp03W for ; Wed, 4 Jul 2018 00:59:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20180704005928epoutp03674e433b69d2738f9d543a34cec848ae~_BJaOCsO42667826678epoutp03W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1530665968; bh=oEnm1rpMLtGFDTboJmi3XE3mjDev+8cc0HhYFlpQ0vI=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=Kbjy9bX8jYwEqIVp79kg0mnmmbIe9sYD0wzlboQAgKdGf0zyd0SQwh/BTQl6xKu6I W0FvjzE81O+fmOx/LngsCk9l8d8jqoao2cwSNsrDkmsY9oHvrCtRrjDYTxkwKqNt4J xCsxK/vwoqjpNxEWoAAgGs4sZjesVaarRH+zLJAY= Received: from epsmges1p3.samsung.com (unknown [182.195.40.156]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180704005925epcas1p22349452733b4cabd387f53fb8bda1e2a~_BJXaGt9T2206822068epcas1p2f; Wed, 4 Jul 2018 00:59:25 +0000 (GMT) X-AuditID: b6c32a37-a71ff70000000fec-46-5b3c1be665ab Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 2D.5E.04076.6EB1C3B5; Wed, 4 Jul 2018 09:59:18 +0900 (KST) Mime-Version: 1.0 Subject: RE: [PATCH v4] PM / devfreq: Fix devfreq_add_device() when drivers are built as modules. Reply-To: myungjoo.ham@samsung.com From: MyungJoo Ham To: Enric Balletbo i Serra , "linux-kernel@vger.kernel.org" CC: "kernel@collabora.com" , Chanwoo Choi , Kyungmin Park , "linux-pm@vger.kernel.org" X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20180703132931.14389-1-enric.balletbo@collabora.com> X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20180704005918epcms1p6c43766664c42fac3ee4d7eb7375b43eb@epcms1p6> Date: Wed, 04 Jul 2018 09:59:18 +0900 X-CMS-MailID: 20180704005918epcms1p6c43766664c42fac3ee4d7eb7375b43eb Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpik+LIzCtJLcpLzFFi42LZdlhTT/eZtE20waXHBhYvD2laXP/ynNVi ze1DjBabz/WwWpxtesNucXnXHDaLz71HGB3YPXbcXcLo0bdlFaPH501yAcxRqTYZqYkpqUUK qXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QLuVFMoSc0qBQgGJxcVK +nY2RfmlJakKGfnFJbZK0YaGRnqGBuZ6RkZA2jjWysgUqCQhNWPFeq+CuUwVD5+GNzA+Yexi 5OSQEDCR+Nn7maWLkYtDSGAHo8S87rdMXYwcHLwCghJ/dwiD1AgLJEs0de4CqxcSUJJouLmP GSKuL9HxYBtYnE1AV2LrhrssILaIQJXEh8dvwGYyC+xllDgx6wYzxDJeiRntT1kgbGmJ7cu3 gjVzCjhJvLywmg0iLipxc/Vbdhj7/bH5UIeKSLTeOws1R1Diwc/dUHEpiSdvF0LV10tc/7yI CWSxhMAERonfN/5DJfQlHl2ZDbaAV8BX4uziuWCDWARUJTYduwM1yEXiRccJsDizgLzE9rdz mEEBwSygKbF+lz7M/Q0bf7Ojs5kF+CTefe1hhYnvmPeECcJWkzi0ewlUvYzE6ekLoe73kHi7 bQvzBEbFWYignoVk8SyExQsYmVcxiqUWFOempxYbFhjrFSfmFpfmpesl5+duYgSnPy3zHYwb zvkcYhTgYFTi4V1Rah0txJpYVlyZe4hRgoNZSYT33i+gEG9KYmVValF+fFFpTmrxIUZToP8n MkuJJucDU3NeSbyhqZGxsbGFiaGZqaGhkjhvxU2BaCGB9MSS1OzU1ILUIpg+Jg5OqQbGBpOt nxVOmWltuf1iC9OifFtjD8eAi++kNj6c1pf0yC/uw9zV+wpjvu5lOhYw3/v0Mr+bmqnGCu66 bk92i9/JcHjW9fG/M4eG/rWfKwM/t5j7N/wo9Ve5tvHcL7XGCOZFYeYX53UY9q88PWlDqn20 pBn39lkFj8+d7nlpEX7rufoPvpV2T+xSlViKMxINtZiLihMB6JSvz5UDAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180703132943epcas1p25b68c00ca1143d5eabcc2285c2ce27a0 References: <20180703132931.14389-1-enric.balletbo@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >+ if (!strncmp(name, DEVFREQ_GOV_SIMPLE_ONDEMAND, >+ DEVFREQ_NAME_LEN)) >+ err = request_module("governor_%s", "simpleondemand"); >+ else >+ err = request_module("governor_%s", name); >+ if (err) >+ return NULL; You are returning without the lock acquired..