]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / watchdog: Fix off-by-one error at resource assignment
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Mar 2018 13:51:49 +0000 (14:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 19 Mar 2018 22:17:07 +0000 (23:17 +0100)
commitb9a467284c62edc7155a0338b6d0cd1010bdca19
tree03d19e68d490cf030fd3d9e2c0c7084259b9617f
parent96d45f52fd10a0eddd9d410543f7fbcab31b2906
ACPI / watchdog: Fix off-by-one error at resource assignment

The resource allocation in WDAT watchdog has off-one-by error, it sets
one byte more than the actual end address.  This may eventually lead
to unexpected resource conflicts.

Fixes: 85005ca992bc (ACPI / watchdog: Add support for WDAT hardware watchdog)
Cc: 4.9+ <stable@vger.kernel.org> # 4.9+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_watchdog.c
drivers/watchdog/wdat_wdt.c