system/bt
リビジョン | dee808040cd8d3005a9e7d26de03bcc45f045361 (tree) |
---|---|
日時 | 2019-12-03 10:20:25 |
作者 | Automerger Merge Worker <android-build-automerger-merge-worker@syst...> |
コミッター | Automerger Merge Worker |
Merge "GAP: Correct the continuous pkt length in l2cap" into oc-dev am: 2a8a9b22f2 am: 5d8fde3e01 am: 5dbe08152a am: 294e64950c am: 28523075a6
Change-Id: If031a82d0c25708dfd2c99ba9db88bd5f014de0e
@@ -221,7 +221,8 @@ static void reassemble_and_dispatch(UNUSED_ATTR BT_HDR* packet) { | ||
221 | 221 | "%s got packet which would exceed expected length of %d. " |
222 | 222 | "Truncating.", |
223 | 223 | __func__, partial_packet->len); |
224 | - packet->len = partial_packet->len - partial_packet->offset; | |
224 | + packet->len = | |
225 | + (partial_packet->len - partial_packet->offset) + packet->offset; | |
225 | 226 | projected_offset = partial_packet->len; |
226 | 227 | } |
227 | 228 |