Home
last modified time | relevance | path

Searched hist:"0 b20406cda621c2495d10baab1e87127ceb43337" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/9p/
H A Dtrans_virtio.cdiff 0b20406cda621c2495d10baab1e87127ceb43337 Mon Sep 27 17:54:44 CDT 2010 Sven Eckelmann <sven.eckelmann@gmx.de> 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>