ACPI: Implement proper length checks for mem resources
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 Feb 2015 02:42:48 +0000 (10:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 21:27:16 +0000 (22:27 +0100)
commitc420dbd13ef7f399a865498496ac9ce2755b8007
treeedb3e22863c5d0a2025242a2b8af47dd60730666
parentc793504de3de484076e1eb96d5187af55f47945c
ACPI: Implement proper length checks for mem resources

Check whether the resulting length is the same as the given
length. Check for start <= end as well.

We need to hand in the resource for this, so we can apply the flags
directly.

[Jiang] Remove enforcement that resource starting address must be
non-zero.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/resource.c