platform/x86: dell-laptop: Allocate buffer on heap rather than globally
authorMario Limonciello <mario.limonciello@dell.com>
Wed, 31 Jan 2018 17:47:35 +0000 (11:47 -0600)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Feb 2018 13:26:11 +0000 (15:26 +0200)
commit9862b43624a5450a097cc4122732857b869dbbca
tree8830ca4d7a80636500eb590e5e2498b5c7c14d10
parent941691ef2197944a202d7870dcd7da3fb0391c65
platform/x86: dell-laptop: Allocate buffer on heap rather than globally

There is no longer a need for the buffer to be defined in
first 4GB physical address space.

Furthermore there may be race conditions with multiple different functions
working on a module wide buffer causing incorrect results.

Fixes: 549b4930f057658dc50d8010e66219233119a4d8
Suggested-by: Pali Rohar <pali.rohar@gmail.com>
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/dell-laptop.c