diff mbox series

[10/13] rpmsg: ns: initialize channel info override field

Message ID 20200731121043.24199-11-arnaud.pouliquen@st.com (mailing list archive)
State New, archived
Headers show
Series introduce IOCTL interface for RPMsg channel management | expand

Commit Message

Arnaud POULIQUEN July 31, 2020, 12:10 p.m. UTC
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 <arnaud.pouliquen@st.com>
---
 drivers/rpmsg/rpmsg_ns.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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",