Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commit594fdba

Browse files
committed
Merge branch 'acpi-wdat'
* acpi-wdat: ACPI / watchdog: Fix off-by-one error at resource assignment
2 parents82bf43b +b1abf6f commit594fdba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎drivers/acpi/acpi_watchdog.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ void __init acpi_watchdog_init(void)
7474
res.start=gas->address;
7575
if (gas->space_id==ACPI_ADR_SPACE_SYSTEM_MEMORY) {
7676
res.flags=IORESOURCE_MEM;
77-
res.end=res.start+ALIGN(gas->access_width,4);
77+
res.end=res.start+ALIGN(gas->access_width,4)-1;
7878
}elseif (gas->space_id==ACPI_ADR_SPACE_SYSTEM_IO) {
7979
res.flags=IORESOURCE_IO;
80-
res.end=res.start+gas->access_width;
80+
res.end=res.start+gas->access_width-1;
8181
}else {
8282
pr_warn("Unsupported address space: %u\n",
8383
gas->space_id);

‎drivers/watchdog/wdat_wdt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static int wdat_wdt_probe(struct platform_device *pdev)
392392

393393
memset(&r,0,sizeof(r));
394394
r.start=gas->address;
395-
r.end=r.start+gas->access_width;
395+
r.end=r.start+gas->access_width-1;
396396
if (gas->space_id==ACPI_ADR_SPACE_SYSTEM_MEMORY) {
397397
r.flags=IORESOURCE_MEM;
398398
}elseif (gas->space_id==ACPI_ADR_SPACE_SYSTEM_IO) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp