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=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 F0A95C433EB for ; Mon, 20 Jul 2020 15:38:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5C1E22CBB for ; Mon, 20 Jul 2020 15:38:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595259513; bh=TN8wEmaPrhwkGhG8ux9wHaay0D/cpBGAWN5Wdw/bCrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=c9cbNVtmB2tCg0NBnyQ16lVAoL7uR7GppmzPJ20uMPv7XA9cVIXK/YOsPPFeIlzoq fTROLZv6mpmVHEfR/DWpZN0Og7eLxrvNCG4O9cvQqaEdvsYG2LL5F45f8zS0PQ+onh 9/1ENhSgCjncXPbvlX0RzbyKGVkkQzo3kSh6P0Rg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729215AbgGTPic (ORCPT ); Mon, 20 Jul 2020 11:38:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:57054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729191AbgGTPi3 (ORCPT ); Mon, 20 Jul 2020 11:38:29 -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 9464F22CB2; Mon, 20 Jul 2020 15:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595259509; bh=TN8wEmaPrhwkGhG8ux9wHaay0D/cpBGAWN5Wdw/bCrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SsM99foscrB3IEAwHrcHmYk/JyfmMsaiklsfC6XsVNwHweVr5oh0NDq7XFkXQoI5z /IWMDVEc8aAp1TxTwc2lIdIDdKfmeafzMkAwcUch/X+EJo7NcaHx++CWVu0B3WAXwX ubEBIG99ebCEFf66jlMnevtkvCsZOVF+1vR7SaqA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , Felipe Balbi , Sasha Levin Subject: [PATCH 4.4 33/58] usb: gadget: udc: atmel: fix uninitialized read in debug printk Date: Mon, 20 Jul 2020 17:36:49 +0200 Message-Id: <20200720152748.815687834@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200720152747.127988571@linuxfoundation.org> References: <20200720152747.127988571@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: Michał Mirosław [ Upstream commit 30517ffeb3bff842e1355cbc32f1959d9dbb5414 ] Fixed commit moved the assignment of 'req', but did not update a reference in the DBG() call. Use the argument as it was renamed. Fixes: 5fb694f96e7c ("usb: gadget: udc: atmel: fix possible oops when unloading module") Signed-off-by: Michał Mirosław Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/gadget/udc/atmel_usba_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 668ac5e8681b5..e6902257d7de7 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -843,7 +843,7 @@ static int usba_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) u32 status; DBG(DBG_GADGET | DBG_QUEUE, "ep_dequeue: %s, req %p\n", - ep->ep.name, req); + ep->ep.name, _req); spin_lock_irqsave(&udc->lock, flags); -- 2.25.1