>
>> diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c
>> index 07372f6..5ad0b98 100644
>> --- a/net/sched/cls_u32.c
>> +++ b/net/sched/cls_u32.c
>> @@ -249,6 +249,9 @@ static unsigned long u32_get(struct tcf_proto *tp, u32 handle)
>> struct tc_u_hnode *ht;
>> struct tc_u_common *tp_c = tp->data;
>>
>> + if (!tp_c)
>> + return 0;
>> +
>> if (TC_U32_HTID(handle) == TC_U32_ROOT)
>> ht = tp->root;
>> else
>> @@ -311,7 +314,6 @@ static int u32_init(struct tcf_proto *tp)
>> root_ht->tp_c = tp_c;
>>
>> tp->root = root_ht;
>> - tp->data = tp_c;
>> return 0;
>> }
>>
>> @@ -524,7 +526,7 @@ static int u32_change(struct tcf_proto *tp, unsigned long base, u32 handle,
>> struct nlattr **tca,
>> unsigned long *arg)
>> {
>> - struct tc_u_common *tp_c = tp->data;
>> + struct tc_u_common *tp_c = tp->root->tp_c;
>> struct tc_u_hnode *ht;
>> struct tc_u_knode *n;
>> struct tc_u32_sel *s;
>> @@ -540,6 +542,7 @@ static int u32_change(struct tcf_proto *tp, unsigned long base, u32 handle,
>> if (err < 0)
>> return err;
>>
>> + tp->data = tp_c;
>> if ((n = (struct tc_u_knode*)*arg) != NULL) {
>> if (TC_U32_KEY(n->handle) == 0)
>> return -EINVAL;
>
> --
> 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
>