Module: xenomai-3
Branch: stable-3.0.x
Commit: 3aafd92a98aa45910ab79538937b383f71d12cf1
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3aafd92a98aa45910ab79538937b383f71d12cf1

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat May 13 12:26:52 2017 +0200

drivers/ipc: silence pedantic UMR warning

---

 kernel/drivers/ipc/rtipc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/drivers/ipc/rtipc.c b/kernel/drivers/ipc/rtipc.c
index 46b253a..136f687 100644
--- a/kernel/drivers/ipc/rtipc.c
+++ b/kernel/drivers/ipc/rtipc.c
@@ -225,6 +225,8 @@ int rtipc_put_sockaddr(struct rtdm_fd *fd, void *arg,
        }
 #endif
 
+       sreq.addr = NULL;
+       sreq.addrlen = NULL;
        ret = rtdm_safe_copy_from_user(fd, &sreq, arg, sizeof(sreq));
        if (ret)
                return ret;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to