]> git.ipfire.org Git - people/ms/linux.git/commit - fs/open.c
don't bother with {get,put}_write_access() on non-regular files
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 14 Mar 2014 14:56:20 +0000 (10:56 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 Apr 2014 03:19:11 +0000 (23:19 -0400)
commitdd20908a8a06b22c171f6c3fcdbdbd65bed07505
tree447e2df881b2f056608098d3b24ab6d9734ce992
parent44ba8406d0005400e56c6b6a279a669eb761d1b8
don't bother with {get,put}_write_access() on non-regular files

it's pointless and actually leads to wrong behaviour in at least one
moderately convoluted case (pipe(), close one end, try to get to
another via /proc/*/fd and run into ETXTBUSY).

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file_table.c
fs/open.c