Skip to content
Commit 49157ea8 authored by Lyle Zhu's avatar Lyle Zhu Committed by Henrik Brix Andersen
Browse files

Bluetooth: SDP: Check tail room of allocated buffer



In partial resolved notification case, there is a case that the tail
room of new allocated buffer is not bigger than the tail room of the
current receiving buffer. Since, the new allocated buffer has the same
size with the current receiving buffer, it means a complete SDP record
cannot fit into the allocated buffer. In this way, the following SDP
discovery should be stopped.

In partial resolved notification case, if the tail room of the new
allocated buffer is not more the tail room of the current receiving
buffer, reports the error `-ENOMEM` and stop the following SDP
discovery.

Signed-off-by: default avatarLyle Zhu <lyle.zhu@nxp.com>
parent 62440784
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment