Subject: patch for patch-3.0.58-vs2.3.2.5.diff and 3.0.59
From: Corey Wright <undefined@pobox.com>
Date: Fri, 18 Jan 2013 04:13:49 -0600
Fri, 18 Jan 2013 04:13:49 -0600
the attached patch fixes the reject in net/core/rtnetlink.c when applying
patch-3.0.58-vs2.3.2.5.diff to 3.0.59 (to account for the addition of
if_info_size in rtmsg_ifinfo()).

tested in virtualbox guest with testme & testfs.

corey
--
undefined@pobox.com


--- linux-3.0.59-vs2.3.2.5/net/core/rtnetlink.c 2013-01-18 00:40:32.000000000 -0600
+++ linux-3.0.59-vs2.3.2.5-fix/net/core/rtnetlink.c 2013-01-18 00:59:32.000000000 -0600
@@ -1927,6 +1929,9 @@ void rtmsg_ifinfo(int type, struct net_d
        int err = -ENOBUFS;
        size_t if_info_size;
 
+       if (!nx_dev_visible(current_nx_info(), dev))
+               return;
+
        skb = nlmsg_new((if_info_size = if_nlmsg_size(dev, 0)), GFP_KERNEL);
        if (skb == NULL)
                goto errout;