From: Nolen Johnson Date: Thu, 6 Jun 2024 23:07:25 +0000 (-0400) Subject: dhd: Don't check DHD_INFO size X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d537d90910c485fe107fd1e1ae38e8ec6fdd546c;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git 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) --- 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)