iwlwifi: mvm: vendor-cmd: don't allocate nlattr array on stack

We keep adding netlink attributes, so with just two more we'll
run into compiler warnings because we use too much stack space.
These are benign for now, but we'd better resolve them anyway.

To fix this, dynamically allocate the array when parsing and
return it to the callers, which then have to free it.

type=cleanup
ticket=none

Change-Id: I021ad66698b3d223888b4351c0968d53a6d65095
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-on: https://git-amr-3.devtools.intel.com/gerrit/201776
automatic-review: ec ger unix iil jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
Tested-by: ec ger unix iil jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM>
Reviewed-by: Coelho, Luciano <luciano.coelho@intel.com>
x-iwlwifi-stack-dev: 90f9c9c507edb81e4d027f80f99df1402c849b33
2 files changed