Signed-off-by: Thomas Graf Index: net-2.6.22/net/ipv4/tcp_vegas.c =================================================================== --- net-2.6.22.orig/net/ipv4/tcp_vegas.c 2007-03-22 23:08:48.000000000 +0100 +++ net-2.6.22/net/ipv4/tcp_vegas.c 2007-03-22 23:09:21.000000000 +0100 @@ -341,16 +341,14 @@ static void tcp_vegas_get_info(struct so { const struct vegas *ca = inet_csk_ca(sk); if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) { - struct tcpvegas_info *info; + struct tcpvegas_info info = { + .tcpv_enabled = ca->doing_vegas_now, + .tcpv_rttcnt = ca->cntRTT, + .tcpv_rtt = ca->baseRTT, + .tcpv_minrtt = ca->minRTT, + }; - info = RTA_DATA(__RTA_PUT(skb, INET_DIAG_VEGASINFO, - sizeof(*info))); - - info->tcpv_enabled = ca->doing_vegas_now; - info->tcpv_rttcnt = ca->cntRTT; - info->tcpv_rtt = ca->baseRTT; - info->tcpv_minrtt = ca->minRTT; - rtattr_failure: ; + nla_put(skb, INET_DIAG_VEGASINFO, sizeof(info), &info); } } -- - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html