提交 74a01d11 编写于 作者: J Jody McIntyre 提交者: Linus Torvalds

[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: NJody McIntyre <scjody@steamballoon.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 8d98c5cd
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册