• S
    net/9p: Mount only matching virtio channels · 0b20406c
    Sven Eckelmann 提交于
    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: NSven Eckelmann <sven.eckelmann@gmx.de>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    0b20406c
trans_virtio.c 10.5 KB