The code looks like it should be doing a bit check, not logical.
URL: http://sourceware.org/bugzilla/show_bug.cgi?id=9302
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/* select on io_port_reg: */
if ( io_port_reg == P2SS )
{
- if ( (buf && 0xfc) != 0 )
+ if ( (buf & 0xfc) != 0 )
{
hw_abort(me, "Cannot write to read-only bits in p2ss.");
}
}
else
{
- if ( (buf && 0xf0) != 0 )
+ if ( (buf & 0xf0) != 0 )
{
hw_abort(me, "Cannot write to read-only bits in p4ss.");
}