lkml.org 
[lkml]   [2012]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 29/49] sch_sfb: Fix missing NULL check
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.0-stable review patch. If anyone has any objections, please let me know.

    ------------------


    From: Alan Cox <alan@linux.intel.com>

    [ Upstream commit 7ac2908e4b2edaec60e9090ddb4d9ceb76c05e7d ]

    Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44461

    Signed-off-by: Alan Cox <alan@linux.intel.com>
    Acked-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    net/sched/sch_sfb.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/net/sched/sch_sfb.c
    +++ b/net/sched/sch_sfb.c
    @@ -556,6 +556,8 @@ static int sfb_dump(struct Qdisc *sch, s

    sch->qstats.backlog = q->qdisc->qstats.backlog;
    opts = nla_nest_start(skb, TCA_OPTIONS);
    + if (opts == NULL)
    + goto nla_put_failure;
    NLA_PUT(skb, TCA_SFB_PARMS, sizeof(opt), &opt);
    return nla_nest_end(skb, opts);




    \
     
     \ /
      Last update: 2012-08-08 01:42    [W:0.027 / U:31.092 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site