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: 136126 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2012162lji; Thu, 17 May 2018 02:01:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqwJMkgiNi+uy437xJt6c/DsJEYI031avNZy3CEpBNUn53r3kKeXyTu3a5YYn8q5vVfxCN8 X-Received: by 2002:a17:902:3a5:: with SMTP id d34-v6mr4461371pld.103.1526547694383; Thu, 17 May 2018 02:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526547694; cv=none; d=google.com; s=arc-20160816; b=inKz8pQ4Q8KO5vqQ0LwtE76vCjbBsn/fCfrwrEePtTEpXGxaw448Cj7WnBvelTd+op EuGzgexIbWRPzOlu11wUSOiphaqJMrL0PkSlnoEk6fFaT98NFRcqhqxxQ/Lqog3w9oby J2mKX86judbQaK0RRAEPqoJdhW51OzchLlvwTi07Zjj3SAtJt79V/fBb6jwKQmOSEQpL 35ugdn76oOQ9S3ZdTI0khaiUh5G0mz4iA8K8xRQs/pxNBGj0mUZsJmqZzz3oQsI9cWje PTJw93gX1Xxxi66aQtYmS5BsvlphbGi6T3//cONFSy9PDqeE9FRziTT/X/t43O11pkW5 HYZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=wO/3Vwe2w+OXBq8uJE10e6m5PMua/N0ytj4b2qk2ZkA=; b=KPyi/Tzzte9yY+xJq5iRKBn/d3kWF/x6+aRL5Tk8rMgcvY/cjNUkFYOaLkBJFxe2Kh 82sZDJBhMcW22p7DfNz1FRE+V3fCbyd+Ndj3iAodZwusOMCc2rTsOpBj4ePchPt0G+0P dixRl3REoEIY+yrTR2kKewsJH1MqAiAx+Ol5RixZF2XUJNw9TB4fv15ychZrnW/xWWb+ G09Gj1MuzI6cqoQ2WFiqLl+0Iv2AmCWQNcosVICvTEMPXIj3QoBFOcSNMJQwhosD279g tkel3hHSV1YO2/62Cl09JMRbuNfWE86z6gy6ky4kWZFEgJ3qFL3tdAw8eUhaw2g1qeb3 ptAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NK9bNcLQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si3845365pgr.72.2018.05.17.02.01.34; Thu, 17 May 2018 02:01:34 -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=@linaro.org header.s=google header.b=NK9bNcLQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752165AbeEQJB3 (ORCPT + 29 others); Thu, 17 May 2018 05:01:29 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40456 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbeEQJBE (ORCPT ); Thu, 17 May 2018 05:01:04 -0400 Received: by mail-wm0-f65.google.com with SMTP id j5-v6so7534886wme.5 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=rVnJgPwO9fTV4ZRRFyLVlntzU/zECescJVjx+FQT+c88z82YyQcDVOyhxS14PNLmlz cVML5CNYdBysgTSnudML7rYZpg//TBekZHMmxRhTf9gJR223z8hQtd5nIcEdEDzx9Sgf iEjmo1qUtkO3Lf9SJCBk4zvIgJ3iUIX7rjsdfrU8Q2OkxLMQkMQbdT3Q7gZqmE/SHd5q NR+OHbfwoLz8HU1SGJqQW4TY39RQIw+tq6J7QawnH/becojJvlPjoX0DthwHhg0AfriP 46XxQGXc/nSk8wm0KZcHprkkpL6DhvYojth7z2YUDwn1uezOrIn14nOkEDQpOQoV2UBi cgyg== X-Gm-Message-State: ALKqPweMTnxgsvCcfkEFzVxGm0RPE/4XIPiB4XEwtN3NzTG6dyGi81tM fXVro837M0nd6KlniRIfd3yBBhJLijA= 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 Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, srinivas.kandagatla@linaro.org Subject: [PATCH v2 7/8] slimbus: messaging: initialize completion correctly 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.16.2 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; } /**