diff options
| author | Dan Carpenter <[email protected]> | 2020-12-04 14:23:16 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2020-12-18 21:14:30 +0000 |
| commit | 411ea23a76526e6efed0b601abb603d3c981b333 (patch) | |
| tree | 89faf2e463c0b92ca6b9e22765e5fbe02faa0985 /net/switchdev/switchdev.c | |
| parent | virtio_ring: Cut and paste bugs in vring_create_virtqueue_packed() (diff) | |
| download | kernel-411ea23a76526e6efed0b601abb603d3c981b333.tar.gz kernel-411ea23a76526e6efed0b601abb603d3c981b333.zip | |
virtio_net: Fix error code in probe()
Set a negative error code intead of returning success if the MTU has
been changed to something invalid.
Fixes: fe36cbe0671e ("virtio_net: clear MTU when out of range")
Reported-by: Robert Buhren <[email protected]>
Reported-by: Felicitas Hetzelt <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/X8pGVJSeeCdII1Ys@mwanda
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
