git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git]
/
drivers
/
net
/
gianfar_ethtool.c
diff --git
a/drivers/net/gianfar_ethtool.c
b/drivers/net/gianfar_ethtool.c
index
25a8c2a
..
0caf3c3
100644
(file)
--- a/
drivers/net/gianfar_ethtool.c
+++ b/
drivers/net/gianfar_ethtool.c
@@
-1669,10
+1669,10
@@
static int gfar_get_cls_all(struct gfar_private *priv,
u32 i = 0;
list_for_each_entry(comp, &priv->rx_list.list, list) {
u32 i = 0;
list_for_each_entry(comp, &priv->rx_list.list, list) {
- if (i
<= cmd->rule_cnt) {
- r
ule_locs[i] = comp->fs.location
;
-
i++
;
- }
+ if (i
== cmd->rule_cnt)
+ r
eturn -EMSGSIZE
;
+
rule_locs[i] = comp->fs.location
;
+ i++;
}
cmd->data = MAX_FILER_IDX;
}
cmd->data = MAX_FILER_IDX;