Skip to content
Commit a94e81ba authored by ZhongYao Luo's avatar ZhongYao Luo Committed by Johan Hedberg
Browse files

Bluetooth: RFCOMM: Fix length errors when payload exceeds 127



hdr->length is the length of the payload, it should be
buf->len - sizeof(*hdr) - 1 or buf->len - (sizeof(*hdr) + 1)

Signed-off-by: default avatarZhongYao Luo <LuoZhongYao@gmail.com>
parent b35d4149
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment