aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2009-10-06 20:59:42 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-13 06:44:07 -0400
commit06a96b33aea838b61a6eeccded781a305cf85a12 (patch)
tree0779090d15ab5827bede0ffcbfb6b817fd784ed7
parentf14d42f314cb45a080bf84ecadf8b9b1eebbe9fd (diff)
x25: bit and/or confusion in x25_ioctl()?
Looking at commit ebc3f64b864f it appears that this was intended and not the original, equivalent to `if (facilities.reverse & ~0x81)'. In x25_parse_facilities() that patch changed how facilities->reverse was set. No other bits were set than 0x80 and/or 0x01. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/x25/af_x25.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index ebbfe6bbbff9..e19d811788a5 100644
--- a/net/x25/af_x25.c
+++ b/net/x25/af_x25.c
@@ -1363,7 +1363,7 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1363 facilities.throughput > 0xDD) 1363 facilities.throughput > 0xDD)
1364 break; 1364 break;
1365 if (facilities.reverse && 1365 if (facilities.reverse &&
1366 (facilities.reverse | 0x81)!= 0x81) 1366 (facilities.reverse & 0x81) != 0x81)
1367 break; 1367 break;
1368 x25->facilities = facilities; 1368 x25->facilities = facilities;
1369 rc = 0; 1369 rc = 0;