[PATCH] ieee1394: fix cross_bound check for null ISO packets
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>
This commit is contained in:
parent
8d98c5cd41
commit
74a01d11c9
1 changed files with 3 additions and 0 deletions
|
@ -236,6 +236,9 @@ struct ti_ohci {
|
||||||
|
|
||||||
static inline int cross_bound(unsigned long addr, unsigned int size)
|
static inline int cross_bound(unsigned long addr, unsigned int size)
|
||||||
{
|
{
|
||||||
|
if (size == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (size > PAGE_SIZE)
|
if (size > PAGE_SIZE)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue