Commit 95f6134e authored by Jean Delvare's avatar Jean Delvare Committed by David S. Miller

[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: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac16ca64
...@@ -914,7 +914,7 @@ static void decode_prio_command(struct sixpack *sp, unsigned char cmd) ...@@ -914,7 +914,7 @@ static void decode_prio_command(struct sixpack *sp, unsigned char cmd)
printk(KERN_DEBUG "6pack: protocol violation\n"); printk(KERN_DEBUG "6pack: protocol violation\n");
else else
sp->status = 0; sp->status = 0;
cmd &= !SIXP_RX_DCD_MASK; cmd &= ~SIXP_RX_DCD_MASK;
} }
sp->status = cmd & SIXP_PRIO_DATA_MASK; sp->status = cmd & SIXP_PRIO_DATA_MASK;
} else { /* output watchdog char if idle */ } else { /* output watchdog char if idle */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment