tcp: Fix out of bounds access to tcpm_vals
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 12 Jul 2012 00:18:04 +0000 (17:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2012 00:30:41 +0000 (17:30 -0700)
commit2100844ca9d7055d5cddce2f8ed13af94c01f85b
tree05894804135da7a743a088806d52c633e42314f5
parent48ee3569f31d91084dc694fef5517eb782428083
tcp: Fix out of bounds access to tcpm_vals

The recent patch "tcp: Maintain dynamic metrics in local cache." introduced
an out of bounds access due to what appears to be a typo.   I believe this
change should resolve the issue by replacing the access to RTAX_CWND with
TCP_METRIC_CWND.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_metrics.c