X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=net%2Fsocket.c;h=6f2a178819726b7b878aa22a6d79954b61c1e239;hb=d970a5218088a856d80acd9da6c6742f55cb0a0d;hp=38729af09461f0be4db5aa89e88d53dab314d9ad;hpb=8ba08378b479f472b37b83542c31bdad465033cf;p=linux-2.6-omap-h63xx.git diff --git a/net/socket.c b/net/socket.c index 38729af0946..6f2a1788197 100644 --- a/net/socket.c +++ b/net/socket.c @@ -383,9 +383,8 @@ int sock_map_fd(struct socket *sock) goto out; } - sprintf(name, "[%lu]", SOCK_INODE(sock)->i_ino); + this.len = sprintf(name, "[%lu]", SOCK_INODE(sock)->i_ino); this.name = name; - this.len = strlen(name); this.hash = SOCK_INODE(sock)->i_ino; file->f_dentry = d_alloc(sock_mnt->mnt_sb->s_root, &this);