From patchwork Thu Feb 25 16:17:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 62896 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp246905lbc; Thu, 25 Feb 2016 08:17:42 -0800 (PST) X-Received: by 10.98.8.80 with SMTP id c77mr63355465pfd.42.1456417062202; Thu, 25 Feb 2016 08:17:42 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ra2si13308411pab.209.2016.02.25.08.17.41; Thu, 25 Feb 2016 08:17:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760249AbcBYQRl (ORCPT + 7 others); Thu, 25 Feb 2016 11:17:41 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34926 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757854AbcBYQRk (ORCPT ); Thu, 25 Feb 2016 11:17:40 -0500 Received: by mail-pf0-f179.google.com with SMTP id c10so36320244pfc.2 for ; Thu, 25 Feb 2016 08:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=cIX9EyrVM86MHI1UX4X36HM+iySRoOuendMl+Sqo79U=; b=TEsDDjoXlXXdvGqjCDxY2OOs4ukDyf71KwilYmDxgnRoseKZdbc/A2MptlvNCYgb5/ zfFLTkbwVcf1PcFgL8qaukIbYV1REQrDl7Hf4YZoWzfRWs4QIUzawjqNNO1BAh9yEdeT 5aYWjpxi7aT1FaOz7xlQfrhQPjhzMQ1gk7q/g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cIX9EyrVM86MHI1UX4X36HM+iySRoOuendMl+Sqo79U=; b=RDsGcdR3oGege2tSsLQKzo0OQQIMEj+Op8k5/Q5lwv4MxVtz2uJxpzAF+KTfXy1dRZ AUG+rCXwj7taSQGJbMb3j140LmmibCURLe8lWbNgCgPdRLJWYbIB2Nv71w5Q3bVqSDM7 /9Yf4+ayLiDSYEzoVxOFNzbbKxGY0Gk0r1+WfRdisQw+9eijQ2jxaAUSWilwDVokt+c4 c9w/H5Dnli/eqS0uACXzZACaItEhvB7/UZB2SV2vQe+Ug33M+VBVy8oIbHPEXNDUljTi YcEsMNYAkapAXvLVwJEzihMvK7+wlT0uRGmRqV/rKBKnk1sDSJ8NHbKf3AFja5s4IZRL NtWQ== X-Gm-Message-State: AG10YOQa/QzqRjv3yn4Qrndu6jRjUMbmll4Z4S79J1DOywaeTYW23L+m0OHA25cM5ytYUmZD X-Received: by 10.98.65.91 with SMTP id o88mr63573632pfa.114.1456417059717; Thu, 25 Feb 2016 08:17:39 -0800 (PST) Received: from tuxbot.san.rr.com (cpe-76-167-68-231.natsow.res.rr.com. [76.167.68.231]) by smtp.gmail.com with ESMTPSA id i13sm13290811pfi.95.2016.02.25.08.17.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Feb 2016 08:17:39 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] soc: qcom: smp2p: Use memset_io to zero out new entries Date: Thu, 25 Feb 2016 08:17:37 -0800 Message-Id: <1456417057-17591-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/smp2p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c index f1eed7f9dd67..61df598444e6 100644 --- a/drivers/soc/qcom/smp2p.c +++ b/drivers/soc/qcom/smp2p.c @@ -379,7 +379,7 @@ static int qcom_smp2p_alloc_outbound_item(struct qcom_smp2p *smp2p) return PTR_ERR(out); } - memset(out, 0, sizeof(*out)); + memset_io(out, 0, sizeof(*out)); out->magic = SMP2P_MAGIC; out->local_pid = smp2p->local_pid; out->remote_pid = smp2p->remote_pid;