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 21:22:36 +0000 (14:22 -0700)
commit015c93a49a4380a1645de83a0567d4736ddde622
tree21a88f298bb5f2cb11a53881df0f8ecc01963776
parent5db39d100c328b218e8c89efab4f43609febf34c
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