]> git.baikalelectronics.ru Git - kernel.git/commit
net/9p: Mount only matching virtio channels
authorSven Eckelmann <sven.eckelmann@gmx.de>
Mon, 27 Sep 2010 22:54:44 +0000 (15:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 22:54:44 +0000 (15:54 -0700)
commit2e73e44502fd12735061584a52da36f00d81575d
tree10befc92130dbe19406b781b16bf312c77c03f89
parent863d0350cd2df319134e279e81a983379ef99acf
net/9p: Mount only matching virtio channels

p9_virtio_create will only compare the the channel's tag characters
against the device name till the end of the channel's tag but not till
the end of the device name. This means that if a user defines channels
with the tags foo and foobar then he would mount foo when he requested
foonot and may mount foo when he requested foobar.

Thus it is necessary to check both string lengths against each other in
case of a successful partial string match.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/9p/trans_virtio.c