summaryrefslogtreecommitdiff
path: root/drivers/char/virtio_console.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2017-03-29 19:09:14 +0300
committerMichael S. Tsirkin <mst@redhat.com>2017-04-07 16:38:59 +0300
commitfe36cbe0671e868cbd2f534a50ac60273fa5acf2 (patch)
tree0afa0bfd5cc28f9715d2540fafeb0b49ff3ef81d /drivers/char/virtio_console.c
parent404123c2db798027e852480ed9c4accef9f1d9e6 (diff)
virtio_net: clear MTU when out of range
virtio attempts to clear the MTU feature bit if the value is out of the supported range, but this has no real effect since FEATURES_OK has already been set. Fix this up by checking the MTU in the new validate callback. Fixes: 14de9d114a82 ("virtio-net: Add initial MTU advice feature") Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/char/virtio_console.c')
0 files changed, 0 insertions, 0 deletions