]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a2ae697fdc6a3d9cde223420cae3ba2b768890e
tree8830ca4d7a80636500eb590e5e2498b5c7c14d10
parent8836dc3145710beb61d0668f96ba52e287020252
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: 9affb643aebaeb4573868d57e37e638c71bb1ff3
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