dhd: Don't check DHD_INFO size
authorNolen Johnson <johnsonnolen@gmail.com>
Thu, 6 Jun 2024 23:07:25 +0000 (19:07 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Thu, 6 Jun 2024 23:07:25 +0000 (19:07 -0400)
* 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

bcmdhd.101.10.361.x/dhd_static_buf.c

index ec803e6f0174cab84027dfccd025d74f3eb82ba4..7251351bd4ef92857a9771595cdea6682157f3fe 100755 (executable)
@@ -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)