On Wednesday, November 30, 2016 9:47:09 PM CET Sven Eckelmann wrote:
batadv_tt_prepare_tvlv_local_data can fail to allocate the memory for the new TVLV block. The caller is informed about this problem with the returned length of 0. Not checking this value results in an invalid memory access when either tt_data or tt_change is accessed.
Reported-by: Dan Carpenter dan.carpenter@oracle.com Fixes: 21a57f6e7a3b ("batman-adv: make the TT CRC logic VLAN specific") Signed-off-by: Sven Eckelmann sven@narfation.org
Applied in 9890c9f.
Thanks! Simon