git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
596e202
)
team: allow read/write-only options
author
Jiri Pirko
<jpirko@redhat.com>
Tue, 19 Jun 2012 05:54:07 +0000
(
05:54
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 19 Jun 2012 22:00:23 +0000
(15:00 -0700)
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
patch
|
blob
|
history
diff --git
a/drivers/net/team/team.c
b/drivers/net/team/team.c
index
dea2d8a
..
f50b8ca
100644
(file)
--- a/
drivers/net/team/team.c
+++ b/
drivers/net/team/team.c
@@
-346,6
+346,8
@@
static int team_option_get(struct team *team,
struct team_option_inst *opt_inst,
struct team_gsetter_ctx *ctx)
{
+ if (!opt_inst->option->getter)
+ return -EOPNOTSUPP;
return opt_inst->option->getter(team, ctx);
}
@@
-355,6
+357,8
@@
static int team_option_set(struct team *team,
{
int err;
+ if (!opt_inst->option->setter)
+ return -EOPNOTSUPP;
err = opt_inst->option->setter(team, ctx);
if (err)
return err;