All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x25: bit and/or confusion?
@ 2009-08-22 18:40 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-08-22 18:40 UTC (permalink / raw)
  To: Henner Eisen, linux-x25, Andrew Morton

Could it be that something like this was intended?

diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c
index 5e6c072..bbfcdfa 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)
 			    facilities.throughput > 0xDD)
 				break;
 			if (facilities.reverse &&
-				(facilities.reverse | 0x81)!= 0x81)
+				(facilities.reverse & 0x81) != 0x81)
 				break;
 			x25->facilities = facilities;
 			rc = 0;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-22 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-22 18:40 [PATCH] x25: bit and/or confusion? Roel Kluin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.