]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dcb: enforce minimum length on IEEE_APPS attribute
authorstephen hemminger <stephen@networkplumber.org>
Fri, 19 May 2017 16:55:48 +0000 (09:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 17:42:33 +0000 (13:42 -0400)
commit332b4fc88698dd0429924a61e09d1734940d80a0
treee29c977e352c95359ad319e168e5853e9adc2455
parentdae37055f475a369f7433360e246afbdccd22ff6
dcb: enforce minimum length on IEEE_APPS attribute

Found by reviewing the warning about unused policy table.
The code implies that it meant to check for size, but since
it unrolled the loop for attribute validation that is never used.
Instead do explicit check for attribute.

Compile tested only. Needs review by original author.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c