projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
switchdev: fix BUG when port driver doesn't support set attr op
[deliverable/linux.git]
/
net
/
switchdev
/
switchdev.c
diff --git
a/net/switchdev/switchdev.c
b/net/switchdev/switchdev.c
index b683e89b4caaee83156a4697351901119b2c2f55..658bc3ac80089da1fe676c82ff591dd3bfdbb3be 100644
(file)
--- a/
net/switchdev/switchdev.c
+++ b/
net/switchdev/switchdev.c
@@
-103,7
+103,9
@@
static void switchdev_port_attr_set_work(struct work_struct *work)
rtnl_lock();
err = switchdev_port_attr_set(asw->dev, &asw->attr);
- BUG_ON(err);
+ if (err && err != -EOPNOTSUPP)
+ netdev_err(asw->dev, "failed (err=%d) to set attribute (id=%d)\n",
+ err, asw->attr.id);
rtnl_unlock();
dev_put(asw->dev);
This page took
0.02721 seconds
and
5
git commands to generate.