From d537d90910c485fe107fd1e1ae38e8ec6fdd546c Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Thu, 6 Jun 2024 19:07:25 -0400 Subject: [PATCH] dhd: Don't check DHD_INFO size * sabrina's firmware puts this over the limit, and in reality, this chunk of code is only important if the value is insanely higher than expected, in this case it is 46 higher lol. * deadpool/wade are still fine after this. Change-Id: I76c9ad7f6ce7a87a3446ea6fd603f857bb848dfb (cherry picked from commit b28eb22a7c3f1575618e31a5656d05d5f1ef69d3) --- bcmdhd.101.10.361.x/dhd_static_buf.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bcmdhd.101.10.361.x/dhd_static_buf.c b/bcmdhd.101.10.361.x/dhd_static_buf.c index ec803e6..7251351 100755 --- a/bcmdhd.101.10.361.x/dhd_static_buf.c +++ b/bcmdhd.101.10.361.x/dhd_static_buf.c @@ -240,11 +240,6 @@ void *bcmdhd_mem_prealloc(int section, unsigned long size) } if (section == DHD_PREALLOC_DHD_INFO) { - if (size > DHD_PREALLOC_DHD_INFO_SIZE) { - DHD_STATIC_ERROR("request DHD_INFO(%lu) > %d\n", - size, DHD_PREALLOC_DHD_INFO_SIZE); - return NULL; - } return wlan_static_dhd_info_buf[index]; } #if defined(BCMSDIO) || defined(BCMDBUS) -- 2.20.1