X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;ds=sidebyside;f=net%2Fopenvswitch%2Fvport-internal_dev.c;h=95c36147a6e136b1e11db6bbbb673c4b7f248e1a;hb=2586d61f81ea4d84e325cbde2b316c9a8ca43e38;hp=434e04c3a189b91512b30ab70e9a238b7d5d9df2;hpb=f38d2e5313f0af9d9b66c02a5d49c71deb994b85;p=cascardo%2Flinux.git diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c index 434e04c3a189..95c36147a6e1 100644 --- a/net/openvswitch/vport-internal_dev.c +++ b/net/openvswitch/vport-internal_dev.c @@ -140,7 +140,7 @@ internal_get_stats(struct net_device *dev, struct rtnl_link_stats64 *stats) static void internal_set_rx_headroom(struct net_device *dev, int new_hr) { - dev->needed_headroom = new_hr; + dev->needed_headroom = new_hr < 0 ? 0 : new_hr; } static const struct net_device_ops internal_dev_netdev_ops = {