Message ID | 20241219181140.423916-1-kieran.r.geary@gmail.com |
---|---|
Headers | show |
Series | Fix SDP buffer overflow for DS4 (Revision 2) | expand |
Hi Kieran, On Thu, Dec 19, 2024 at 1:13 PM Kieran Geary <kieran.r.geary@gmail.com> wrote: > > --- > src/device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/device.c b/src/device.c > index 2b3d19f55..4e5a5b945 100644 > --- a/src/device.c > +++ b/src/device.c > @@ -6047,7 +6047,7 @@ static uint16_t get_sdp_flags(struct btd_device *device) > * results in SDP response being dropped by kernel. Workaround this by > * forcing SDP code to use bigger MTU while connecting. > */ > - if (vid == 0x054c && pid == 0x05c4) > + if (vid == 0x054c && (pid == 0x05c4 || pid == 0x09cc)) > return SDP_LARGE_MTU; > > if (btd_adapter_ssp_enabled(device->adapter)) > -- > 2.47.1 Perhaps it would be a good idea to create a vid:pid table if there are multiple devices being affected.