efivars: Check size of user object
authorMatt Fleming <matt.fleming@intel.com>
Mon, 17 Mar 2014 09:17:28 +0000 (09:17 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 17 Apr 2014 12:53:34 +0000 (13:53 +0100)
commite003bbee2a6a19a4c733335989284caf1b179e0d
tree80c92271ca01ceaabdbd43d13bcda29b11789b2a
parentbafc84d539c0ffa916037840df54428623abc3e6
efivars: Check size of user object

Unbelieavably there are no checks to see whether the data structure
passed to 'new_var' and 'del_var' is the size that we expect. Let's add
some for better robustness.

Cc: Mike Waychison <mikew@google.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/efivars.c