aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_rsvp.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/cls_rsvp.h')
-rw-r--r--net/sched/cls_rsvp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h
index 838a3ff5a2cc..61286a0f7a3e 100644
--- a/net/sched/cls_rsvp.h
+++ b/net/sched/cls_rsvp.h
@@ -430,7 +430,7 @@ static int rsvp_change(struct tcf_proto *tp, unsigned long base,
430 if (f->handle != handle && handle) 430 if (f->handle != handle && handle)
431 goto errout2; 431 goto errout2;
432 if (tb[TCA_RSVP_CLASSID-1]) { 432 if (tb[TCA_RSVP_CLASSID-1]) {
433 f->res.classid = *(u32*)nla_data(tb[TCA_RSVP_CLASSID-1]); 433 f->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID-1]);
434 tcf_bind_filter(tp, &f->res, base); 434 tcf_bind_filter(tp, &f->res, base);
435 } 435 }
436 436
@@ -470,7 +470,7 @@ static int rsvp_change(struct tcf_proto *tp, unsigned long base,
470 err = -EINVAL; 470 err = -EINVAL;
471 if (nla_len(tb[TCA_RSVP_CLASSID-1]) != 4) 471 if (nla_len(tb[TCA_RSVP_CLASSID-1]) != 4)
472 goto errout; 472 goto errout;
473 f->res.classid = *(u32*)nla_data(tb[TCA_RSVP_CLASSID-1]); 473 f->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID-1]);
474 } 474 }
475 475
476 err = -EINVAL; 476 err = -EINVAL;