diff options
-rw-r--r-- | net/dcb/dcbnl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index da6ee81ce51f..0a360072cfec 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -208,10 +208,7 @@ static struct sk_buff *dcbnl_newmsg(int type, u8 cmd, u32 port, u32 seq, | |||
208 | return NULL; | 208 | return NULL; |
209 | 209 | ||
210 | nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags); | 210 | nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags); |
211 | if (!nlh) { | 211 | BUG_ON(!nlh); |
212 | /* header should always fit, allocation must be buggy */ | ||
213 | BUG(); | ||
214 | } | ||
215 | 212 | ||
216 | dcb = nlmsg_data(nlh); | 213 | dcb = nlmsg_data(nlh); |
217 | dcb->dcb_family = AF_UNSPEC; | 214 | dcb->dcb_family = AF_UNSPEC; |