]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: remove VLAIS usage from mac80211
authorJan-Simon Möller <dl9pf@gmx.de>
Fri, 21 Mar 2014 06:39:32 +0000 (23:39 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Apr 2014 08:55:27 +0000 (10:55 +0200)
commit4d048682cce7608349e9adceedc7f8b35e6feffb
tree93074ed6ad707806bee7aa749e0ffae80f96168f
parentb0dbb4d5570ea0f07467ba8096f942bf0df71e02
mac80211: remove VLAIS usage from mac80211

Replaced the use of a Variable Length Array In Struct (VLAIS) with a
C99 compliant equivalent. This is the original VLAIS struct.

struct {
struct aead_request     req;
u8                      priv[crypto_aead_reqsize(tfm)];
} aead_req;

This patch instead allocates the appropriate amount of memory using a
char array.

The new code can be compiled with both gcc and clang.

Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Behan Webster <behanw@converseincode.com>
[small style cleanups]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/aes_ccm.c