]> git.baikalelectronics.ru Git - kernel.git/commit
net/9p: clarify trans_fd parse_opt failure handling
authorLi Zhong <floridsleeves@gmail.com>
Wed, 21 Sep 2022 21:09:21 +0000 (14:09 -0700)
committerDominique Martinet <asmadeus@codewreck.org>
Fri, 7 Oct 2022 12:23:09 +0000 (21:23 +0900)
commit5c103c3f93c0e6145809e7d1d246028f28cedba3
treeaec6157e028408f1b4f0e3a604ec57004868f9e4
parentdd9f2f0e5b75af305b85106a1945559f42b2bd8b
net/9p: clarify trans_fd parse_opt failure handling

This parse_opts will set invalid opts.rfd/wfd in case of failure which
we already check, but it is not clear for readers that parse_opts error
are handled in p9_fd_create: clarify this by explicitely checking the
return value.

Link: https://lkml.kernel.org/r/20220921210921.1654735-1-floridsleeves@gmail.com
Signed-off-by: Li Zhong <floridsleeves@gmail.com>
[Dominique: reworded commit message to clarify this is NOOP]
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
net/9p/trans_fd.c