mei: hbm: remove variable length arrays
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 20 Mar 2017 13:04:04 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:38:25 +0000 (17:38 +0200)
commit3fcbab6c4a962259b8cb83aea813a4c7fbe11f77
treec6b5415d60e941580d78919aa06faba03d32d6c5
parent394a77d0bb63756871750400068d8b0c3582fba7
mei: hbm: remove variable length arrays

Though VLA are supported by CC99 there are many cavities
and should be avoided.

'const size_t len = sizeof()' that we used may not be set
at the compile time hence generating VLA code.

This fixes also sparse warning
warning: Variable length array is used type.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hbm.c