Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9409
b: refs/heads/master
c: 1146bc7
h: refs/heads/master
i:
  9407: 351d741
v: v3
  • Loading branch information
Dominik Brodowski committed Sep 28, 2005
1 parent db8633b commit 13301de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 664cceb0093b755739e56572b836a99104ee8a75
refs/heads/master: 1146bc743e074760ef0dd08b3457f35a68069a54
8 changes: 4 additions & 4 deletions trunk/drivers/pcmcia/rsrc_nonstatic.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static int adjust_memory(struct pcmcia_socket *s, unsigned int action, unsigned
unsigned long size = end - start + 1;
int ret = 0;

if (end <= start)
if (end < start)
return -EINVAL;

down(&rsrc_sem);
Expand Down Expand Up @@ -724,7 +724,7 @@ static int adjust_io(struct pcmcia_socket *s, unsigned int action, unsigned long
unsigned long size = end - start + 1;
int ret = 0;

if (end <= start)
if (end < start)
return -EINVAL;

if (end > IO_SPACE_LIMIT)
Expand Down Expand Up @@ -925,7 +925,7 @@ static ssize_t store_io_db(struct class_device *class_dev, const char *buf, size
return -EINVAL;
}
}
if (end_addr <= start_addr)
if (end_addr < start_addr)
return -EINVAL;

ret = adjust_io(s, add, start_addr, end_addr);
Expand Down Expand Up @@ -977,7 +977,7 @@ static ssize_t store_mem_db(struct class_device *class_dev, const char *buf, siz
return -EINVAL;
}
}
if (end_addr <= start_addr)
if (end_addr < start_addr)
return -EINVAL;

ret = adjust_memory(s, add, start_addr, end_addr);
Expand Down

0 comments on commit 13301de

Please sign in to comment.