projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d98c5c
)
[PATCH] ieee1394: fix cross_bound check for null ISO packets
author
Jody McIntyre
<scjody@steamballoon.com>
Tue, 17 May 2005 04:54:05 +0000
(21:54 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:23 +0000
(07:59 -0700)
Fix cross_bound to not return 1 for zero-length regions. Fixes regression
when sending null ISO packets.
Signed-off-by: Jody McIntyre <scjody@steamballoon.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ieee1394/ohci1394.h
patch
|
blob
|
history
diff --git
a/drivers/ieee1394/ohci1394.h
b/drivers/ieee1394/ohci1394.h
index
d1758d4
..
cc66c1c
100644
(file)
--- a/
drivers/ieee1394/ohci1394.h
+++ b/
drivers/ieee1394/ohci1394.h
@@
-236,6
+236,9
@@
struct ti_ohci {
static inline int cross_bound(unsigned long addr, unsigned int size)
{
+ if (size == 0)
+ return 0;
+
if (size > PAGE_SIZE)
return 1;