]> git.baikalelectronics.ru Git - 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)
commitb0e9513c7329c957a03594d3fc449c3638c92bb0
tree2d6e2935ecb018d1195ec06c8b7eecc024dffb4e
parent61d160df68b1a7674a3e233f32cc985ad5fee452
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