Clemens Famulla-Conrad
ae1b52fe7b
during 4-way HS offload" because of connection using WPA2-PSK or WPA-SAE problems with brcmfmac wifi hardware. (bsc#1230797) [+ Revert-Mark-authorization-completed-on-driver-indica.patch] OBS-URL: https://build.opensuse.org/package/show/hardware/wpa_supplicant?expand=0&rev=148
23 lines
772 B
Diff
23 lines
772 B
Diff
Index: wpa_supplicant-2.10/src/utils/os.h
|
|
===================================================================
|
|
--- wpa_supplicant-2.10.orig/src/utils/os.h
|
|
+++ wpa_supplicant-2.10/src/utils/os.h
|
|
@@ -260,7 +260,7 @@ int os_fdatasync(FILE *stream);
|
|
*
|
|
* Caller is responsible for freeing the returned buffer with os_free().
|
|
*/
|
|
-void * os_zalloc(size_t size);
|
|
+void * os_zalloc(size_t size) __attribute((malloc, alloc_size(1)));
|
|
|
|
/**
|
|
* os_calloc - Allocate and zero memory for an array
|
|
@@ -274,6 +274,8 @@ void * os_zalloc(size_t size);
|
|
*
|
|
* Caller is responsible for freeing the returned buffer with os_free().
|
|
*/
|
|
+
|
|
+__attribute((malloc, alloc_size(1,2)))
|
|
static inline void * os_calloc(size_t nmemb, size_t size)
|
|
{
|
|
if (size && nmemb > (~(size_t) 0) / size)
|