diff options
author | Antonio Quartulli <antonio@meshcoding.com> | 2013-10-19 08:06:05 -0400 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2013-10-19 08:46:32 -0400 |
commit | 33faa04547d7ab51700bdc3fe9b6306d93dea43f (patch) | |
tree | 0535b314d844010a631c02ca79295d2ef5f95e75 /net/batman-adv | |
parent | b1eda2ac3fa6bf23b27c7c70eda6885124c79ed3 (diff) |
batman-adv: check skb preparation return value
Fix bogus merge conflict resolution by checking the return
values of the skb preparation routines.
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/send.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c index 82588e425641..d765d53f8201 100644 --- a/net/batman-adv/send.c +++ b/net/batman-adv/send.c | |||
@@ -267,11 +267,14 @@ int batadv_send_skb_generic_unicast(struct batadv_priv *bat_priv, | |||
267 | 267 | ||
268 | switch (packet_type) { | 268 | switch (packet_type) { |
269 | case BATADV_UNICAST: | 269 | case BATADV_UNICAST: |
270 | batadv_send_skb_prepare_unicast(skb, orig_node); | 270 | if (!batadv_send_skb_prepare_unicast(skb, orig_node)) |
271 | goto out; | ||
271 | break; | 272 | break; |
272 | case BATADV_UNICAST_4ADDR: | 273 | case BATADV_UNICAST_4ADDR: |
273 | batadv_send_skb_prepare_unicast_4addr(bat_priv, skb, orig_node, | 274 | if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb, |
274 | packet_subtype); | 275 | orig_node, |
276 | packet_subtype)) | ||
277 | goto out; | ||
275 | break; | 278 | break; |
276 | default: | 279 | default: |
277 | /* this function supports UNICAST and UNICAST_4ADDR only. It | 280 | /* this function supports UNICAST and UNICAST_4ADDR only. It |