提交 4d706410 编写于 作者: R Rich Felker

don't continue looping through ioctl compat_map after finding match

there's only one matching entry for any given command so this had no
functional distinction, but additional loops are pointless and
wasteful.
上级 d6a62add
......@@ -128,6 +128,7 @@ int ioctl(int fd, int req, ...)
r = __syscall(SYS_ioctl, fd, compat_map[i].old_req, u.buf);
if (r<0) break;
convert_ioctl_struct(&compat_map[i], u.buf, arg, R);
break;
}
}
return __syscall_ret(r);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册