[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1351581396-20493-1-git-send-email-windsdaemon@gmail.com>
Date: Tue, 30 Oct 2012 15:16:36 +0800
From: Jing Wang <windsdaemon@...il.com>
To: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Al Viro <viro@...iv.linux.org.uk>,
Pavel Emelyanov <xemul@...allels.com>
Cc: netdev@...r.kernel.org, Jing Wang <windsdaemon@...il.com>
Subject: [PATCH 1/1] net: fix compile warning in af_unix.c
This patch fix some compile warning as follows:
net/unix/af_unix.c: In function 'unix_bind':
net/unix/af_unix.c:895: warning: 'path.dentry' may be used uninitialized in this function
net/unix/af_unix.c:895: warning: 'path.mnt' may be used uninitialized in this function
Signed-off-by: Jing Wang <windsdaemon@...il.com>
---
net/unix/af_unix.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 5b5c876..9f710ac 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -895,6 +895,8 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
struct path path;
umode_t mode = S_IFSOCK |
(SOCK_INODE(sock)->i_mode & ~current_umask());
+ path.mnt = NULL;
+ path.dentry = NULL;
err = unix_mknod(sun_path, mode, &path);
if (err) {
if (err == -EEXIST)
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists