netdev: Don't divide by zero when "linux-htb" zero min-rate is used
authorJustin Pettit <jpettit@nicira.com>
Fri, 8 Oct 2010 20:50:16 +0000 (13:50 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 8 Oct 2010 23:46:47 +0000 (16:46 -0700)
commit40271de1421e0d02f87b37b27a2d8a8d93cfdc8c
tree0016a4781be14d6fdf2b2d1a4a4a5dad5bec9afb
parentfa0d5349c39593656e75bdc82330bf04e9f612f7
netdev: Don't divide by zero when "linux-htb" zero min-rate is used

A "min-rate" of zero for the "linux-htb" QoS type would cause a divide
by zero exception.  This patch prevents that by just returning zero.  A
later patch will try to enforce reasonable values for "min-rate".

Bug #3745
lib/netdev-linux.c