diff options
| -rw-r--r-- | net/bridge/br_fdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index b524c36c1273..02359e81f86e 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c | |||
| @@ -631,7 +631,7 @@ static int fdb_fill_info(struct sk_buff *skb, const struct net_bridge *br, | |||
| 631 | if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) | 631 | if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) |
| 632 | goto nla_put_failure; | 632 | goto nla_put_failure; |
| 633 | 633 | ||
| 634 | if (nla_put(skb, NDA_VLAN, sizeof(u16), &fdb->vlan_id)) | 634 | if (fdb->vlan_id && nla_put(skb, NDA_VLAN, sizeof(u16), &fdb->vlan_id)) |
| 635 | goto nla_put_failure; | 635 | goto nla_put_failure; |
| 636 | 636 | ||
| 637 | return nlmsg_end(skb, nlh); | 637 | return nlmsg_end(skb, nlh); |
