]> git.baikalelectronics.ru Git - kernel.git/commit
dst: catch uninitialized metrics
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 24 May 2011 17:50:52 +0000 (13:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 May 2011 17:50:52 +0000 (13:50 -0400)
commitbbc6ec0c1557fc5877b9f41b7f28a2821b7af56b
treeac0d1bc0a5e2cdaaeedb72b2ba049141ea16121c
parente9e9062551d67b3078deceaae86134b4df37b68f
dst: catch uninitialized metrics

Catch cases where dst_metric_set() and other functions are called
but _metrics is NULL.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h