From patchwork Fri May 25 14:36:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10427635 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 746ED602D8 for ; Fri, 25 May 2018 14:39:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6191F28DCB for ; Fri, 25 May 2018 14:39:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5591A29773; Fri, 25 May 2018 14:39:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1954328DCB for ; Fri, 25 May 2018 14:39:11 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 389FE267688; Fri, 25 May 2018 16:38:37 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 09D71267679; Fri, 25 May 2018 16:38:28 +0200 (CEST) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by alsa0.perex.cz (Postfix) with ESMTP id 5A3DE267646 for ; Fri, 25 May 2018 16:38:27 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id j4-v6so15074906wme.1 for ; Fri, 25 May 2018 07:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DATBD+bfVSJYi0EGGsuGsSQSPfajgrHRQrhVJaxnXeI=; b=HqyU58eMmtno/FDQyjBEX2p+cfBlorJ4Tslx/3XvP77SOwFrgZ9zGAocup68F5XoRv vkjLRVddX9sh4CVQg2JqxeMCGFBETk8jXeIsGvMgQWFTqV8A/OMEMZpepNbye1ZeFytP Q7qr8rouc/xmX21XglrgFZ8KNPGlTLJyNIG7M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DATBD+bfVSJYi0EGGsuGsSQSPfajgrHRQrhVJaxnXeI=; b=lHsWID2XSIFs7unKoeANTKt9a4okPnHvvqMZ8B5ldBGKoGmk0PUMm/XWp5FuZv4CVz EU9zXkJHxCve5W9WeRlirENWTPdRICKT89W1I0EhqwZ8S599QSw3ZyXHrMpBNsPYDpVg u4nmqrznUqc02fVfK2hqRs+PJR1PrUVcJaU9+DBDMRebi8RftfMrN7UuD06FVbyJ2IPK W8hKztcWUByeN46eh28VuGtF4fEytr7wJ1BU2m+yNfzRiKXxdXm1BWw0cjUPn7Q1C8Ny zB7p1rX6dwRe2Q7SiiNR9DiTRC/Jib+bZByYl6VpkQeIxYh4jqY7igQSxPpqDWP//mPR T+gQ== X-Gm-Message-State: ALKqPweGp1P5IyNpSgonjF+Me0U7FBB/Gpbe0tsljXmkzYugcKL1bIkV vsx/N+XBiTECw5sj7NcwfeRlNw== X-Google-Smtp-Source: ADUXVKLhutydzSxufaVRqvsKkr62/NEUj08ozroqBwakxUUGLgrmh+Zy9GnCx6y2bYUNuM/ZxXuGhQ== X-Received: by 2002:a1c:d1c2:: with SMTP id i185-v6mr2147266wmg.10.1527259107033; Fri, 25 May 2018 07:38:27 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id r6-v6sm26165729wrg.73.2018.05.25.07.38.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 May 2018 07:38:26 -0700 (PDT) From: Srinivas Kandagatla To: Greg Kroah-Hartman Date: Fri, 25 May 2018 15:36:15 +0100 Message-Id: <20180525143618.820-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180525143618.820-1-srinivas.kandagatla@linaro.org> References: <20180525143618.820-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v3 5/8] slimbus: messaging: initialize completion correctly X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP slim_val_inf can contain random value from stack, make sure the completion is initialized to NULL while filling the msg. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/messaging.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c index 1c57b631031a..e3605ed1c459 100644 --- a/drivers/slimbus/messaging.c +++ b/drivers/slimbus/messaging.c @@ -246,6 +246,7 @@ static void slim_fill_msg(struct slim_val_inf *msg, u32 addr, msg->num_bytes = count; msg->rbuf = rbuf; msg->wbuf = wbuf; + msg->comp = NULL; } /**