]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
platform/x86: wmi: Don't allow drivers to get each other's GUIDs
authorMario Limonciello <mario.limonciello@dell.com>
Wed, 1 Nov 2017 19:25:28 +0000 (14:25 -0500)
committerDarren Hart (VMware) <dvhart@infradead.org>
Fri, 3 Nov 2017 23:33:58 +0000 (16:33 -0700)
commitf97e058cfe8032504e310bd5c20e35d640ef2858
tree2d6e2935ecb018d1195ec06c8b7eecc024dffb4e
parent92b8c540bce7b1662212dff35f503f5b1266725b
platform/x86: wmi: Don't allow drivers to get each other's GUIDs

The only driver using this was dell-wmi, and it really was a hack.
The driver was getting a data attribute from another driver and this
type of action should not be encouraged.

Rather drivers that need to interact with one another should pass
data back and forth via exported functions.

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Reviewed-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/wmi.c
include/linux/wmi.h