diff options
Diffstat (limited to 'net/sched/cls_fw.c')
-rw-r--r-- | net/sched/cls_fw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c index 61ebe25e5f77..b75696d67ec2 100644 --- a/net/sched/cls_fw.c +++ b/net/sched/cls_fw.c | |||
@@ -203,7 +203,7 @@ fw_change_attrs(struct tcf_proto *tp, struct fw_filter *f, | |||
203 | if (tb[TCA_FW_CLASSID]) { | 203 | if (tb[TCA_FW_CLASSID]) { |
204 | if (nla_len(tb[TCA_FW_CLASSID]) != sizeof(u32)) | 204 | if (nla_len(tb[TCA_FW_CLASSID]) != sizeof(u32)) |
205 | goto errout; | 205 | goto errout; |
206 | f->res.classid = *(u32*)nla_data(tb[TCA_FW_CLASSID]); | 206 | f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); |
207 | tcf_bind_filter(tp, &f->res, base); | 207 | tcf_bind_filter(tp, &f->res, base); |
208 | } | 208 | } |
209 | 209 | ||
@@ -218,7 +218,7 @@ fw_change_attrs(struct tcf_proto *tp, struct fw_filter *f, | |||
218 | if (tb[TCA_FW_MASK]) { | 218 | if (tb[TCA_FW_MASK]) { |
219 | if (nla_len(tb[TCA_FW_MASK]) != sizeof(u32)) | 219 | if (nla_len(tb[TCA_FW_MASK]) != sizeof(u32)) |
220 | goto errout; | 220 | goto errout; |
221 | mask = *(u32*)nla_data(tb[TCA_FW_MASK]); | 221 | mask = nla_get_u32(tb[TCA_FW_MASK]); |
222 | if (mask != head->mask) | 222 | if (mask != head->mask) |
223 | goto errout; | 223 | goto errout; |
224 | } else if (head->mask != 0xFFFFFFFF) | 224 | } else if (head->mask != 0xFFFFFFFF) |
@@ -264,7 +264,7 @@ static int fw_change(struct tcf_proto *tp, unsigned long base, | |||
264 | if (tb[TCA_FW_MASK]) { | 264 | if (tb[TCA_FW_MASK]) { |
265 | if (nla_len(tb[TCA_FW_MASK]) != sizeof(u32)) | 265 | if (nla_len(tb[TCA_FW_MASK]) != sizeof(u32)) |
266 | return -EINVAL; | 266 | return -EINVAL; |
267 | mask = *(u32*)nla_data(tb[TCA_FW_MASK]); | 267 | mask = nla_get_u32(tb[TCA_FW_MASK]); |
268 | } | 268 | } |
269 | 269 | ||
270 | head = kzalloc(sizeof(struct fw_head), GFP_KERNEL); | 270 | head = kzalloc(sizeof(struct fw_head), GFP_KERNEL); |