]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:27:22 +0000 (08:27 -0500)
commit3f9caa14132a0a9cafc2a0ed72dfab45d4907bf8
tree48f8c7c47e6c8bd5f44a6c9cbb4d7eb1b4c2340e
parent1d26a6779541e0b14a96f7206849e75ce49b22ba
platform/x86: dell-laptop: Allocate buffer on heap rather than globally

BugLink: http://bugs.launchpad.net/bugs/1755179
commit 9862b43624a5450a097cc4122732857b869dbbca upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/platform/x86/dell-laptop.c