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=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 AB19AC433E0 for ; Fri, 22 May 2020 05:12:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C65D20757 for ; Fri, 22 May 2020 05:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590124350; bh=1myIi6xkFqACQc78M6WFK0BeJ3iGiKTaCetZxVdCThw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=01+dWc/KBYzKvpPSn8u7Ybb6pJDwmN779DF3tfOgCFu4ugNNcHCme+os5BIlxj/Sv fBFfQlS9gsbJS8uigAApiu8w24crzh5G1AilIKirbTeDK5O+YZCEbjMxxqsH0vD1d5 o22CV+wXWHbtJolM/Gx+Kssag5ekSifITHwoSswY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727903AbgEVFM1 (ORCPT ); Fri, 22 May 2020 01:12:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:51430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbgEVFM1 (ORCPT ); Fri, 22 May 2020 01:12:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 60ED12073B; Fri, 22 May 2020 05:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590124347; bh=1myIi6xkFqACQc78M6WFK0BeJ3iGiKTaCetZxVdCThw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Bs+k3U0gaQbXD7G6JQqviI8GenKhZKi7klUYc32HTPUgf4tnpeP6s3wR++nzuYa52 HuBZOWJzIaq9r6yYQk2JVwcY2I7VcjwUX6LBrLRKQpND6DMrtTpY02EXiP4FuYpWJv lJddfxmWfDueS5qlsSStsZdIPrKLuYyBoVGBeI7k= Date: Fri, 22 May 2020 07:12:22 +0200 From: Greg Kroah-Hartman To: Dinghao Liu Cc: kjlu@umn.edu, Bin Liu , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [v2] usb: musb: Fix runtime PM imbalance on error Message-ID: <20200522051222.GA523130@kroah.com> References: <20200522025902.11516-1-dinghao.liu@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200522025902.11516-1-dinghao.liu@zju.edu.cn> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Fri, May 22, 2020 at 10:59:02AM +0800, Dinghao Liu wrote: > When copy_from_user() returns an error code, there > is a runtime PM usage counter imbalance. > > Fix this by moving copy_from_user() to the beginning > of this function. > > Signed-off-by: Dinghao Liu > --- > drivers/usb/musb/musb_debugfs.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) What changed from v1? Always show that below the --- line as the documentation says to. thanks, greg k-h