diff options
author | Scott Feldman | 2015-06-11 20:20:42 +0200 |
---|---|---|
committer | David S. Miller | 2015-06-23 15:57:17 +0200 |
commit | e9fdaec0e0d40f548c2b79e147c7ffd2809d2a64 (patch) | |
tree | 0f64fa084a34b501ec84856d8d71f440ba519eba /include/uapi/linux/dcbnl.h | |
parent | Merge branch 'switchdev-vlan' (diff) | |
download | kernel-qcow2-linux-e9fdaec0e0d40f548c2b79e147c7ffd2809d2a64.tar.gz kernel-qcow2-linux-e9fdaec0e0d40f548c2b79e147c7ffd2809d2a64.tar.xz kernel-qcow2-linux-e9fdaec0e0d40f548c2b79e147c7ffd2809d2a64.zip |
switchdev: change BUG_ON to WARN for attr set failure case
This particular BUG_ON condition was checking for attr set err in the
COMMIT phase, which isn't expected (it's a driver bug if PREPARE phase is
OK but COMMIT fails). But BUG_ON() is too strong for this case, so change
to WARN(). BUG_ON() would be warranted if the system was corrupted beyond
repair, but this is not the case here.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/dcbnl.h')
0 files changed, 0 insertions, 0 deletions