]> git.baikalelectronics.ru Git - kernel.git/commit
net/9p: fix bug in client create for .L
authorEric Van Hensbergen <ericvh@kernel.org>
Sun, 18 Dec 2022 17:57:27 +0000 (17:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:54 +0000 (13:33 +0100)
commite4cc7f1d2c29e69d13525ac88a90651d0b6708bb
treead6361445fa4eb639cf46d991d05ebed86e0cebb
parent9645fb85bdfce5e45d8076934d1e5b0cca012bca
net/9p: fix bug in client create for .L

[ Upstream commit b4019a2ccf4595e01c9c79d79f345f0dcccc25db ]

We are supposed to set fid->mode to reflect the flags
that were used to open the file.  We were actually setting
it to the creation mode which is the default perms of the
file not the flags the file was opened with.

Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Reviewed-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/9p/client.c