2.6.32-longterm review patch. If anyone has any objections, please let us know.
------------------ [bwh: This is only applicable to 2.6.32. Phonet was fixed upstream to work with multiple net namespaces.] This should really fix the OOPS when doing: unshare(CLONE_NEWNET); exit(0); while the phonet module is loaded. Signed-off-by: Rémi Denis-Courmont <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> --- net/phonet/pn_dev.c | 3 +++ 1 file changed, 3 insertions(+) --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c @@ -225,6 +225,9 @@ static int phonet_device_notify(struct n { struct net_device *dev = arg; + if (!net_eq(dev_net(dev), &init_net)) + return 0; + switch (what) { case NETDEV_REGISTER: if (dev->type == ARPHRD_PHONET)
_______________________________________________ stable mailing list [email protected] http://linux.kernel.org/mailman/listinfo/stable
