qcacld-3.0: Mem zero dynamic fields only in dp_prealloc_deinit
As per current driver implementation, whenever we load the wlan
driver, we initialize the dp_prealloc structs with default values,
which are used by dp_prealloc_init to allocate memory and during
driver unload, in the function dp_prealloc_deinit, after freeing
the allocated memory, we mem_zero the dp_prealloc structures.
Unfortunately, this zeros both the static and dynamic content.
In case of soft driver unload/load, where we internally
de-init/init the wlan driver, dp_prealloc_init fails because
we now don't know size of memory to be allocated. That info
was part of the static memory that had been zeroed during
deinit.
To address this issue, only zero the dynamic fields of
dp_prealloc structs in dp_prealloc_deinit.
Change-Id: If450d426ee655f6c2b32febdd001ab6d5489b51e
CRs-Fixed: 3174685