Skip to content
Commit 90367c8d authored by Johan Hedberg's avatar Johan Hedberg Committed by Benjamin Cabé
Browse files

Bluetooth: Host: Classic: Fix allocated PSM comparison



The code for checking for allocated BR/EDR PSMs was potentially resulting
in an integer overflow, due to doing a <= UINT16_MAX (0xffff) comparison
on a uint16_t variable. To avoid this, use a uint32_t variable internally.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@silabs.com>
parent d308608b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment