Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279055
b: refs/heads/master
c: 2494654
h: refs/heads/master
i:
  279053: 0410f4a
  279051: 2e06ab2
  279047: 3413728
  279039: f957972
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Dec 23, 2011
1 parent d066680 commit 9b22168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5a59b73321d9c6e6a9f0be4c8b563668f12c625
refs/heads/master: 2494654d4890316e7340fb8b3458daad0474a1b9
6 changes: 3 additions & 3 deletions trunk/net/sched/sch_netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ static int get_loss_clg(struct Qdisc *sch, const struct nlattr *attr)
case NETEM_LOSS_GI: {
const struct tc_netem_gimodel *gi = nla_data(la);

if (nla_len(la) != sizeof(struct tc_netem_gimodel)) {
if (nla_len(la) < sizeof(struct tc_netem_gimodel)) {
pr_info("netem: incorrect gi model size\n");
return -EINVAL;
}
Expand All @@ -624,8 +624,8 @@ static int get_loss_clg(struct Qdisc *sch, const struct nlattr *attr)
case NETEM_LOSS_GE: {
const struct tc_netem_gemodel *ge = nla_data(la);

if (nla_len(la) != sizeof(struct tc_netem_gemodel)) {
pr_info("netem: incorrect gi model size\n");
if (nla_len(la) < sizeof(struct tc_netem_gemodel)) {
pr_info("netem: incorrect ge model size\n");
return -EINVAL;
}

Expand Down

0 comments on commit 9b22168

Please sign in to comment.