[CRIU] [PATCH 2/2] tty: Fix false-positive failure if index of peer is zero
Cyrill Gorcunov
gorcunov at openvz.org
Tue Dec 11 11:36:28 EST 2012
Plain __is_log2 is not enough here since a peer with index 1
is a master peer, but __is_log2 treat it as power of two
value for obvious reason, which in turn makes code to thing
we've met slave peer, wrongly of course.
So use is_slave_index helper wich would not only call for
proper is_log2 but take a slave peer with index 0 into
account as well.
Reported-by: Alexander Kartashov <alekskartashov at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
tty.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-tty-Fix-false-positive-failure-if-index-of-peer-is-z.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121211/312c5c3e/attachment.bin>
More information about the CRIU
mailing list