ACPI / EC: access user space with get_user()/put_user()
authorVasiliy Kulikov <segooon@gmail.com>
Wed, 22 May 2013 12:59:11 +0000 (14:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Jun 2013 21:29:20 +0000 (23:29 +0200)
commitecde3003e5205a283b46b931c729a2aecab64ba1
treee76f86792706f5b3be85e7ac73fdb9b96cd532c5
parent7d132055814ef17a6c7b69f342244c410a5e000f
ACPI / EC: access user space with get_user()/put_user()

User space pointer may not be dereferenced. Use get_user()/put_user()
instead and check their return codes.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec_sys.c