diff options
Diffstat (limited to 'net/sched/sch_atm.c')
-rw-r--r-- | net/sched/sch_atm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c index 4d876598d7df..0c71f2eb96bc 100644 --- a/net/sched/sch_atm.c +++ b/net/sched/sch_atm.c | |||
@@ -231,7 +231,7 @@ static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, | |||
231 | 231 | ||
232 | if (!tb[TCA_ATM_FD] || nla_len(tb[TCA_ATM_FD]) < sizeof(fd)) | 232 | if (!tb[TCA_ATM_FD] || nla_len(tb[TCA_ATM_FD]) < sizeof(fd)) |
233 | return -EINVAL; | 233 | return -EINVAL; |
234 | fd = *(int *)nla_data(tb[TCA_ATM_FD]); | 234 | fd = nla_get_u32(tb[TCA_ATM_FD]); |
235 | pr_debug("atm_tc_change: fd %d\n", fd); | 235 | pr_debug("atm_tc_change: fd %d\n", fd); |
236 | if (tb[TCA_ATM_HDR]) { | 236 | if (tb[TCA_ATM_HDR]) { |
237 | hdr_len = nla_len(tb[TCA_ATM_HDR]); | 237 | hdr_len = nla_len(tb[TCA_ATM_HDR]); |
@@ -246,7 +246,7 @@ static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, | |||
246 | if (nla_len(tb[TCA_ATM_EXCESS]) != sizeof(u32)) | 246 | if (nla_len(tb[TCA_ATM_EXCESS]) != sizeof(u32)) |
247 | return -EINVAL; | 247 | return -EINVAL; |
248 | excess = (struct atm_flow_data *) | 248 | excess = (struct atm_flow_data *) |
249 | atm_tc_get(sch, *(u32 *)nla_data(tb[TCA_ATM_EXCESS])); | 249 | atm_tc_get(sch, nla_get_u32(tb[TCA_ATM_EXCESS])); |
250 | if (!excess) | 250 | if (!excess) |
251 | return -ENOENT; | 251 | return -ENOENT; |
252 | } | 252 | } |