Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2603445ybg; Fri, 31 Jul 2020 05:12:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUI73dWV/7/xHNiA06jJNTnrPM17jYhjaeCsPB5r4HYmAuKvd+tXM8MlGEao/OgWskMeo3 X-Received: by 2002:a17:906:d9db:: with SMTP id qk27mr3685538ejb.37.1596197542587; Fri, 31 Jul 2020 05:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596197542; cv=none; d=google.com; s=arc-20160816; b=AKW7Gcz5fW6DUh19iEzKU47t51tILP8q4MoO+ZXW7DOrjBoffg3btT2x2pZnv/w89d 5T2mSpbzvT9SDah1DrnpyEnKzrusIyPNjcLshxLUo0wPSHUwuao6fl6SWl1msTTYRWXH yj0b0w5TiaFpLyt5mgqEnD8dMZzmMiDbdlvoQ4AhBSFkGIx7yPhxXOUjUeiXVhM0/G86 5EurzVIPToSxG1MB33pmROn1AHzWcw34gzR9WfJmIkV0Ht4iUNdmD9OwKu9dRKKhFHpA M4QZ6I4P5nSbqwGoJGKnc+Y+4LizvCTtcYkSiDWMWN1vwhMJl1iN1Kyrz6EDtHnLivOg wY5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Pb04KRp/CHv7AubmM5WkWb6DmIPNpc8iKS6+GMia3j0=; b=Gx24gg2VRBGOekuGSclxTEBhmtZnot/aihe+OP5ooQmEK7m31fg5i+El4uLkaqzk4P NzQ2PIBDmTNb0v90FY5RvMSvxBVSCDTDkQspLsCnHKQdlFbknQqZoPB6GcpJOtL3GGBc a/HZbvMXhH8BX3dbVOM+ez6IHINoDfOitkMeOOBc746ex9RRuGqBvdetkqY+LTR6xkM+ g0+LIg9uLCcXnAS12XrnbnxMbMXTFZG98ts5UZb4ziHN+EWlBOljaISE4Mk9CgABTYuu WtzKRKGgdxbTSPCUzEPA5QTWYV0uSE4ofk/X1Gd4OgKkZAv3jT58spJHT773T2HH7DjO VU1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=dVuZGPfm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si4806841eje.437.2020.07.31.05.11.59; Fri, 31 Jul 2020 05:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=dVuZGPfm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733163AbgGaMLh (ORCPT + 99 others); Fri, 31 Jul 2020 08:11:37 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:17276 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733073AbgGaMLR (ORCPT ); Fri, 31 Jul 2020 08:11:17 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06VC8lRS011696; Fri, 31 Jul 2020 14:11:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=Pb04KRp/CHv7AubmM5WkWb6DmIPNpc8iKS6+GMia3j0=; b=dVuZGPfmA8OnN77TPjYb1baQvnuZUQ0IeqACwuZCQKpMp4hImQxhS+BuL1CM9KHFV4wB W5KiMogmqvGhke10FrnNYhZOpqsvAhKV5xNwYGjyAtWcerKRS9uU2hNvkJDhznem2w9e xMiPHOw0zy/yTtdpW5dgKBp07yI89dFTwnAUoiMtQTT8bdSVJ+wHPso0zWvSNDcW9d1c WzcSBgvS3Akjci7XSED7aXuv4HcbmIjbjY2sMNEbSmFNX3MKjj6q8zQBTmehfHpq3bMQ s+Pr+QEnI/tGsAspQZcvJhEAUUyZqA6rGnEF4Xl74sAIpefjAU/BpqmO/YH50pxnJxAy bw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 32ga72dcbf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 Jul 2020 14:11:11 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 318B310002A; Fri, 31 Jul 2020 14:11:11 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 264252AE6DD; Fri, 31 Jul 2020 14:11:11 +0200 (CEST) Received: from localhost (10.75.127.44) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 31 Jul 2020 14:11:10 +0200 From: Arnaud Pouliquen To: Bjorn Andersson , Ohad Ben-Cohen , Mathieu Poirier CC: , , , Subject: [PATCH 10/13] rpmsg: ns: initialize channel info override field Date: Fri, 31 Jul 2020 14:10:40 +0200 Message-ID: <20200731121043.24199-11-arnaud.pouliquen@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200731121043.24199-1-arnaud.pouliquen@st.com> References: <20200731121043.24199-1-arnaud.pouliquen@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG5NODE3.st.com (10.75.127.15) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-31_04:2020-07-31,2020-07-31 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org By default driver_override should be 0 to avoid to force the channel creation with a specified name.The local variable is not initialized. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/rpmsg_ns.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rpmsg/rpmsg_ns.c b/drivers/rpmsg/rpmsg_ns.c index b478e2b55213..ace237854f88 100644 --- a/drivers/rpmsg/rpmsg_ns.c +++ b/drivers/rpmsg/rpmsg_ns.c @@ -103,6 +103,7 @@ static int rpmsg_ns_cb(struct rpmsg_device *rpdev, void *data, int len, strncpy(chinfo.name, msg->name, sizeof(chinfo.name)); chinfo.src = RPMSG_ADDR_ANY; chinfo.dst = le32_to_cpu(msg->addr); + chinfo.driver_override = NULL; dev_info(dev, "%sing channel %s addr 0x%x\n", flags & RPMSG_NS_DESTROY ? "destroy" : "creat", -- 2.17.1