]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 May 2014 20:20:29 +0000 (13:20 -0700)
commit2419da02f5ff42cb8af85c0b6a3916b6187abf2c
treed20aa34916f267490fff169b0ff8beca3bb6de58
parent7147ad6410de7f330650e47b198815fe0d907a65
don't bother with {get,put}_write_access() on non-regular files

commit dd20908a8a06b22c171f6c3fcdbdbd65bed07505 upstream.

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).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/file_table.c
fs/open.c