]> git.baikalelectronics.ru Git - kernel.git/commit
9p connect fixes
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 5 Aug 2009 22:02:43 +0000 (02:02 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Dec 2009 17:16:41 +0000 (12:16 -0500)
commit3b909f4adf04c9268215c6a9e79e1031512f26c3
treeb63bf63d7d2b0d0fac2529a3c3bd906f85388c79
parent8f07f7f6120d4a8bac15716e12ed04385cfd02ee
9p connect fixes

* if we fail in p9_conn_create(), we shouldn't leak references to struct file.
  Logics in ->close() doesn't help - ->trans is already gone by the time it's
  called.
* sock_create_kern() can fail.
* use of sock_map_fd() is all fscked up; I'd fixed most of that, but the
  rest will have to wait for a bit more work in net/socket.c (we still are
  violating the basic rule of working with descriptor table: "once the reference
  is installed there, don't rely on finding it there again").

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/9p/trans_fd.c