]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d7db2a965ec9a8d65a8c0eae764a2a13f63ece7
tree447e2df881b2f056608098d3b24ab6d9734ce992
parentb546e38acd5b298c3c1e9c76284e010a25f277e1
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