summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2006-11-23 20:48:28 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-11-26 00:16:50 +0100
commit95f6134e175fd69ab3f088f7a09adbd3fd3548e1 (patch)
tree0fdd4d94c7a2256efe12e8bf5109cbad5141e1ea /drivers/net
parent[NET]: Fix kfifo_alloc() error check. (diff)
downloadlinux-95f6134e175fd69ab3f088f7a09adbd3fd3548e1.tar.xz
linux-95f6134e175fd69ab3f088f7a09adbd3fd3548e1.zip
[6PACK]: Masking bug in 6pack driver.
Looks like a broken masking to me, binary not is used where bitwise not was intended. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/hamradio/6pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c
index 86b3bb9bec2d..92420f007b97 100644
--- a/drivers/net/hamradio/6pack.c
+++ b/drivers/net/hamradio/6pack.c
@@ -914,7 +914,7 @@ static void decode_prio_command(struct sixpack *sp, unsigned char cmd)
printk(KERN_DEBUG "6pack: protocol violation\n");
else
sp->status = 0;
- cmd &= !SIXP_RX_DCD_MASK;
+ cmd &= ~SIXP_RX_DCD_MASK;
}
sp->status = cmd & SIXP_PRIO_DATA_MASK;
} else { /* output watchdog char if idle */