Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1066756ybl; Wed, 14 Aug 2019 10:10:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXcu09gr8zr/Unst5z9bDKV9LWtdH7hXRtcaOUN9bvrynDNt7Aoi+WX/i0FIYfGGjkni4b X-Received: by 2002:aa7:9552:: with SMTP id w18mr951470pfq.107.1565802603701; Wed, 14 Aug 2019 10:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802603; cv=none; d=google.com; s=arc-20160816; b=J7vL9JjmaQMhbmDkTdS34arsFokZ76IXmGm3qgzlrl/GNAGvPPYoO2q3ZgTu3aPYuQ pFAjC7v9xnqu2zKEljXWV4z3FTsfaCKiiCykxkklE3fFzMbBm3KbPFEpjKcFQ8PaWk76 fh0G7BsSDx33Mrc0/QB5nUo/Fc7NFevXK1/K6hebGHeDsNNUjwOd8I/Icwu0v2a7EPEK ak439KfnMEX3M4FRw4K8bG/oP6AZmWLYXnTaX4nP0Lnvr6VJ+CSN7iFl70lF5C6bYeuA qOzpkmn503y4pEuYpMf8UAWRSlhNHfke+YQXKVAy0IK3232a+386EEaCpNVbi7FOI59B wJWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PfLCQDidbn/TeDE+NBBmCCZO0iBVVzD5mUIaI8gca3c=; b=mcTb3+u+IlJG4YQNLLINOkqosyBNHCbGhq2/OCCS7vE4ADiJq4AulCicPpw9i1Lt6C lQLo0NH3nl9vEoNSduQqTd49rbZqw9JTv68R6bHOu+FJIxz8dyAut7NAbCyBo6ZlXdH/ 2moVXUlXHXsM0cciEo5zS3XdRWhfHlaEyCH+TP0Eew/SDWcnI/syiqY/dxgGKT7krczo M8cYRpAgNyjgCxXKZ9V+cYYhCR3mEGn2L85i4o6a9bR/mPwcVVol0dx+LtjRFtBvTw0c yudVy9BXgbRbuZnAFfmEzKrJsBxz17/PdghDTEytPx9aPz1dnmu1FXsA10plCGAah6VQ 8VIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nyE9xSuf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23si183827pgi.76.2019.08.14.10.09.46; Wed, 14 Aug 2019 10:10:03 -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=@kernel.org header.s=default header.b=nyE9xSuf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730193AbfHNRIo (ORCPT + 99 others); Wed, 14 Aug 2019 13:08:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728649AbfHNRIl (ORCPT ); Wed, 14 Aug 2019 13:08:41 -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 772B22084D; Wed, 14 Aug 2019 17:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802521; bh=hCgr0/7hadj/Z1Ak1ssKJSqfrRjV0yt0Iiv3obLQrfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nyE9xSufYmW53wxmKRCu0+KElmWUbTDUFEzO1AokacUkDg7gsJZHNmyHPfy39iiP8 uPoqVaT+9qJUcN7AjUbXEZUVE+vC2mfIWqBXKIChTzPvbcl7mA2g+cVCfiLS7Tt+TF eOrCfsZs6Kqq4xMG9M6rJ5T6rP+aS03XrQUXU+Fk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, syzbot+199ea16c7f26418b4365@syzkaller.appspotmail.com, Oliver Neukum , Dmitry Torokhov Subject: [PATCH 4.19 14/91] Input: usbtouchscreen - initialize PM mutex before using it Date: Wed, 14 Aug 2019 19:00:37 +0200 Message-Id: <20190814165750.373364516@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165748.991235624@linuxfoundation.org> References: <20190814165748.991235624@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oliver Neukum commit b55d996f057bf2e7ba9422a80b5e17e99860cb0b upstream. Mutexes shall be initialized before they are used. Fixes: 12e510dbc57b2 ("Input: usbtouchscreen - fix deadlock in autosuspend") Reported-by: syzbot+199ea16c7f26418b4365@syzkaller.appspotmail.com Signed-off-by: Oliver Neukum Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/touchscreen/usbtouchscreen.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c @@ -1672,6 +1672,8 @@ static int usbtouch_probe(struct usb_int if (!usbtouch || !input_dev) goto out_free; + mutex_init(&usbtouch->pm_mutex); + type = &usbtouch_dev_info[id->driver_info]; usbtouch->type = type; if (!type->process_pkt)