Commit: 04b220a1e485deb3bf025cdc706a4c3958a1c294
Parent: 1b37809b1df771fcfc2c46a8ece765359615ad28
Author: Fedor Pchelkin <pchelkin@ispras.ru>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-01-30 19:23:02
Tree: 14d1f7f88bd4336c5f0af82939f89116a493a99b

btio: actually try to enable MTU auto-tuning A "0" for the input MTU passed to the underlying socket is supposed to indicate that its value should be determined by the L2CAP layer. However, the current code treats a zero imtu just as if there is nothing to change. Introduce rework the code to indicate that the zero imtu is explicitly requested by the caller for the purpose of auto-tuning and -1 is used as not set value. Found by Linux Verification Center (linuxtesting.org). Fixes: ae5be371a9f5 ("avdtp: Enable MTU auto tunning")

Diffstat

M btio/btio.c | 29 ++++++++++++++++++++- - - - - - - - -

1 files changed, 20 insertions(+), 9 deletions(-)

View Full Diff | Patch