lkml.org 
[lkml]   [2009]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 05/22] pppol2tp: calls unregister_pernet_gen_device() at unload time
    2.6.30-stable review patch.  If anyone has any objections, please let us know.

    ------------------
    From: Eric Dumazet <eric.dumazet@gmail.com>

    [ Upstream commit 446e72f30eca76d6f9a1a54adf84d2c6ba2831f8 ]

    Failure to call unregister_pernet_gen_device() can exhaust memory
    if module is loaded/unloaded many times.

    Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
    Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    drivers/net/pppol2tp.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/net/pppol2tp.c
    +++ b/drivers/net/pppol2tp.c
    @@ -2682,6 +2682,7 @@ out_unregister_pppol2tp_proto:
    static void __exit pppol2tp_exit(void)
    {
    unregister_pppox_proto(PX_PROTO_OL2TP);
    + unregister_pernet_gen_device(pppol2tp_net_id, &pppol2tp_net_ops);
    proto_unregister(&pppol2tp_sk_proto);
    }




    \
     
     \ /
      Last update: 2009-09-11 02:37    [W:0.022 / U:33.636 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site