aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-12-03 16:13:27 -0500
committerDavid S. Miller <davem@davemloft.net>2016-12-03 16:13:27 -0500
commita38b61009425b3882704270e792a6e743f5d9426 (patch)
treed19b50d283f5fb3d0e3d63160aa8ce0981163f36 /net
parent8dc0f265d39a3933f4c1f846c7c694f12a2ab88a (diff)
parentc2d0f48a13e53b4747704c9e692f5e765e52041a (diff)
Merge tag 'batadv-net-for-davem-20161202' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== Here is another batman-adv bugfix: - fix checking for failed allocation of TVLV blocks in TT local data, by Sven Eckelmann ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/batman-adv/translation-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 7f663092f6de..0dc85eb1cb7a 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -3282,7 +3282,7 @@ static bool batadv_send_my_tt_response(struct batadv_priv *bat_priv,
3282 &tvlv_tt_data, 3282 &tvlv_tt_data,
3283 &tt_change, 3283 &tt_change,
3284 &tt_len); 3284 &tt_len);
3285 if (!tt_len) 3285 if (!tt_len || !tvlv_len)
3286 goto unlock; 3286 goto unlock;
3287 3287
3288 /* Copy the last orig_node's OGM buffer */ 3288 /* Copy the last orig_node's OGM buffer */
@@ -3300,7 +3300,7 @@ static bool batadv_send_my_tt_response(struct batadv_priv *bat_priv,
3300 &tvlv_tt_data, 3300 &tvlv_tt_data,
3301 &tt_change, 3301 &tt_change,
3302 &tt_len); 3302 &tt_len);
3303 if (!tt_len) 3303 if (!tt_len || !tvlv_len)
3304 goto out; 3304 goto out;
3305 3305
3306 /* fill the rest of the tvlv with the real TT entries */ 3306 /* fill the rest of the tvlv with the real TT entries */