diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-06-02 17:20:57 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-06-03 08:27:17 +0200 |
| commit | 5f80c363677c6aea0f2fc9a4fe0b5622abd97674 (patch) | |
| tree | fb949f8d6e9b04a04221092cb60a61f59628177f /include/linux/timerqueue.h | |
| parent | 5e50d4b8ae3ea622122d3c6a38d7f6fe68dfddca (diff) | |
batman-adv: tt: sync local and global tvlv preparation return values
The batadv_tt_prepare_tvlv_local_data() and
batadv_tt_prepare_tvlv_global_data() functions are supposed to work the
same - just with different sources for the TT entries. But both handled the
return values completely different. The global variant only made sure that
the *tt_len parameter was set to 0 and didn't care about the actual return
value of the function.
The local function never made sure that the *tt_len value was set to some
value when the operation failed. The callers were handling these
differences and made sure that they didn't access the incorrectly
initialized variable.
Sync both function as good as possible to avoid problems with new code
which might not be aware of these differences in the behavior.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
