Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155164
b: refs/heads/master
c: a6f052e
h: refs/heads/master
v: v3
  • Loading branch information
Raphael Assenat authored and Wim Van Sebroeck committed Jul 9, 2009
1 parent eb0fa0d commit d5421ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db5d2d8a5dfe0ae3e83ac618fd953ecc621adcdf
refs/heads/master: a6f052e39c3832b5842c4f44d9b3a4295dacfc4a
5 changes: 3 additions & 2 deletions trunk/drivers/watchdog/sa1100_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

static unsigned long oscr_freq;
static unsigned long sa1100wdt_users;
static int pre_margin;
static unsigned int pre_margin;
static int boot_status;

/*
Expand Down Expand Up @@ -84,6 +84,7 @@ static const struct watchdog_info ident = {
.options = WDIOF_CARDRESET | WDIOF_SETTIMEOUT
| WDIOF_KEEPALIVEPING,
.identity = "SA1100/PXA255 Watchdog",
.firmware_version = 1,
};

static long sa1100dog_ioctl(struct file *file, unsigned int cmd,
Expand Down Expand Up @@ -118,7 +119,7 @@ static long sa1100dog_ioctl(struct file *file, unsigned int cmd,
if (ret)
break;

if (time <= 0 || time > 255) {
if (time <= 0 || (oscr_freq * (long long)time >= 0xffffffff)) {
ret = -EINVAL;
break;
}
Expand Down

0 comments on commit d5421ab

Please sign in to comment.