Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3512874imu; Mon, 7 Jan 2019 04:53:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN5MKDnttThB0WztBIrHhoGGzO8lMV2/7QURPwBs//kZ1MVsyrH/3KjqNSOvBFUZ0eYFe3qI X-Received: by 2002:a62:15d5:: with SMTP id 204mr63733829pfv.103.1546865608866; Mon, 07 Jan 2019 04:53:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546865608; cv=none; d=google.com; s=arc-20160816; b=0/C2FoZi9gNtnVNeZeWSeMyti6DZiUoTNJaKuQSuWsFsg+5Suun5ZSXF+GjdXp51pb oxYKMagYWAIeUUXGrJxwQlD1gKtSkHi4NjjmqEYyOxzGOvAdP2j1RJngrhL+epuDvO9N v1bgwpChlIiCLTSZEHyDstRw9pVFoTYW5Bd7YBUABDj7+FaTrlPCIuBG4W9Myhc+ncNg YxxoKFBqhx3XCpKO3X4Cz+RtxByYjrFaD1PbFLEmHuX97f5V0AjdQo+QGrJEIDdtOnxn ZaJE/MngYr2SiSf6W5AvQNTSRfDLectgaTIu4mR8+SSBmvBGh/b5QhlZwXlQznMAgwG+ fs2Q== 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=OaSjiOaIisnoVN6ApIqZ+NwVJW2x7i8RlN7SbmWxwh8=; b=r5euKPgtU/o1nqdXLgsrutHygxzNPPawcx6VyXyCVpoo2V29j4ae7zyMxd/YBPitWd oNTijCuXTspI/qN82ZQYhhHSch7SvWnFtl+kSqa8kpREyhQKUYEaIhDStUao3VFsIJvT PQU1VdJuitNevt5/ZEvKQiSco9wQGbwTX3YpA9lNg6+Ao1fISnY3qPn9bifsEgIIyh2Z OsvvlBLzxFGU9aVm3V4U+2Mlx/CE0K5hQOZ6iG5ZL+uVOiOp3jK3Ouame7nUUu5TbnqD cJMniEpnA+9//m+8ZpXCTAfTEtF/zddsZJEazBch/vaBjK1IFU7FxRinLX3BNgtmD+M8 OrZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JeoDd48q; 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 33si1606587plt.228.2019.01.07.04.53.14; Mon, 07 Jan 2019 04:53:28 -0800 (PST) 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=JeoDd48q; 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 S1729401AbfAGMvb (ORCPT + 99 others); Mon, 7 Jan 2019 07:51:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:41526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729370AbfAGMv3 (ORCPT ); Mon, 7 Jan 2019 07:51:29 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 12FCF20651; Mon, 7 Jan 2019 12:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546865489; bh=2oWf+xew/4LA/jFW8uQrv3PuSMrJvh/kOoVgXa4Yhdk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JeoDd48q4SZS/OzxqcU5zgFLUktt1ugPJYGWa7w+44p9jPkWkKAd/rwtYCmTFRZSF 7Gsg2TlOhnA8/Zc6L3emCv6Sm/VOUrHdCW0ChVFB6ZKitceKiqfasnr9JKoAaklm98 OcByizh9AVuTvGc/ZBO9XHYmqvZ1M3SongktcEZk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Ajay Singh Subject: [PATCH 4.19 084/170] staging: wilc1000: fix missing read_write setting when reading data Date: Mon, 7 Jan 2019 13:31:51 +0100 Message-Id: <20190107104502.942350207@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107104452.953560660@linuxfoundation.org> References: <20190107104452.953560660@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Colin Ian King commit c58eef061dda7d843dcc0ad6fea7e597d4c377c0 upstream. Currently the cmd.read_write setting is not initialized so it contains garbage from the stack. Fix this by setting it to 0 to indicate a read is required. Detected by CoverityScan, CID#1357925 ("Uninitialized scalar variable") Fixes: c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver") Signed-off-by: Colin Ian King Cc: stable Acked-by: Ajay Singh Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/wilc_sdio.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/staging/wilc1000/wilc_sdio.c +++ b/drivers/staging/wilc1000/wilc_sdio.c @@ -831,6 +831,7 @@ static int sdio_read_int(struct wilc *wi if (!g_sdio.irq_gpio) { int i; + cmd.read_write = 0; cmd.function = 1; cmd.address = 0x04; cmd.data = 0;