From patchwork Thu May 17 08:58:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10406009 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 DA0C860155 for ; Thu, 17 May 2018 09:02:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0132B289CE for ; Thu, 17 May 2018 09:02:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1B46289F2; Thu, 17 May 2018 09:02:10 +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 344E928A2D for ; Thu, 17 May 2018 09:02:06 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 41F8C267663; Thu, 17 May 2018 11:01:14 +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 C4657267412; Thu, 17 May 2018 11:01:05 +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 0CE9A267412 for ; Thu, 17 May 2018 11:01:03 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id a137-v6so4569784wme.1 for ; Thu, 17 May 2018 02:01:03 -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=wO/3Vwe2w+OXBq8uJE10e6m5PMua/N0ytj4b2qk2ZkA=; b=NK9bNcLQmV2Vp7oN8/PJf65GxaStmlZXuOjPDj1luMk71/CTVWwPkcG/19ZtbkutYO imY+8rMjCwnLtxfT7/PVf+wimiMrMfRaQGcHyev7bqL3IBnnIGu0+5A/8OX+eXGWtlki zlYp77whilkKgLRdP1rxu3E6HxHQA90JkquCI= 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=wO/3Vwe2w+OXBq8uJE10e6m5PMua/N0ytj4b2qk2ZkA=; b=l8Hcet9micHcfQwNejxYhDt5ktpLcAJqoMCSURP/rtiel/n1IhIWqP53CsUd1adbU7 F4L3Su0jos2GPgb88YpYwJPfQfpSMyrObg0iYi2iKJ6jr2c8ZvvYrfE4xmW+gRw66I6N jtzV6mQMYkwWTN9+lIXf1e1pgTAz9iUPxKxghkWv5oAlyJnk6/AZ5iTkk0h1A1yAJMFu Z/NAWZW8iPS0QuUCmcBTaO9/oVUnWx8UQYhtTg/lBRLIJTqR75pRs/0V08i0kb3/dMgK Fu0JMAHUS5XYCqqaF8swXPeoq/RwvsUOg921+jXGvYUXEsIGfhNyLgl72Nefac/F+U67 PPEQ== X-Gm-Message-State: ALKqPwclceQiD0wzS3g/4gS1kBEYDhh/ZAYfu8HeM+Z4VIWhlEvzJLNC 44fDXdDchWi/loz6mdkBSMfPyg== X-Google-Smtp-Source: AB8JxZomWMLDR1Q9tl302KvCyXVGwzerudCNOLuSwIqy6j+TAK1M/JxtqnkarNqQK5weIuWiT9s+8w== X-Received: by 2002:a1c:4843:: with SMTP id v64-v6mr1074462wma.159.1526547663231; Thu, 17 May 2018 02:01:03 -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 y84-v6sm4123098wmg.44.2018.05.17.02.01.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 May 2018 02:01:02 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Thu, 17 May 2018 09:58:49 +0100 Message-Id: <20180517085850.14276-8-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180517085850.14276-1-srinivas.kandagatla@linaro.org> References: <20180517085850.14276-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, srinivas.kandagatla@linaro.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v2 7/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 fd0788019357..2635eaaadf4a 100644 --- a/drivers/slimbus/messaging.c +++ b/drivers/slimbus/messaging.c @@ -277,6 +277,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; } /**