dell-laptop: Clear buffer before each SMBIOS call
authorPali Rohár <pali.rohar@gmail.com>
Mon, 6 Jul 2015 10:08:55 +0000 (12:08 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Mon, 6 Jul 2015 22:33:38 +0000 (15:33 -0700)
commitced53f6d12e497ba210a518e7e76178da987f932
tree1d34b93579c003ae82ac42c11a5a9f305902302b
parentb78fb51b68884ba9b8541a2f1914e8b6d054474c
dell-laptop: Clear buffer before each SMBIOS call

Make sure that before initializing SMBIOS call, the input buffer does
not contain any garbage (e.g. values from previous SMBIOS call). This
fixes problems with passing undefined/random parameters to SMBIOS
functions.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/dell-laptop.c