]> git.baikalelectronics.ru Git - kernel.git/commit
net/9p/trans_virtio.c: add null terminal for mount tag
authorpiaojun <piaojun@huawei.com>
Fri, 3 Aug 2018 09:22:20 +0000 (17:22 +0800)
committerDominique Martinet <dominique.martinet@cea.fr>
Mon, 13 Aug 2018 00:34:58 +0000 (09:34 +0900)
commit28cd433eaeb7f2a60b9dda3fbe221bab765b0d49
tree6e389a241468352500b8e5f1de9a46ed21903f34
parent3d9a68b7899fed167c36e5ba52b494ed817ba88b
net/9p/trans_virtio.c: add null terminal for mount tag

chan->tag is Non-null terminated which will result in printing messy code
when debugging code. So we should add '\0' for tag to make the code more
convenient and robust. In addition, I drop char->tag_len to simplify the
code.

Link: http://lkml.kernel.org/r/5B641ECC.5030401@huawei.com
Signed-off-by: Jun Piao <piaojun@huawei.com>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
net/9p/trans_virtio.c