diff options
author | Dale Farnsworth <dale@farnsworth.org> | 2006-03-03 09:59:28 -0700 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-03-03 12:12:36 -0500 |
commit | e38fd1a055cf4038c423bd841859b01aeb07d1b0 (patch) | |
tree | 5349f6114cfb86f7b9bc6b57ec1f1b2ca39e01e3 /drivers/net | |
parent | d5f9558a7778d3f7dc3c9e0d5cbe7318710532f8 (diff) | |
download | op-kernel-dev-e38fd1a055cf4038c423bd841859b01aeb07d1b0.zip op-kernel-dev-e38fd1a055cf4038c423bd841859b01aeb07d1b0.tar.gz |
[PATCH] mv643xx_eth: Fix misplaced parenthesis in mv643xx_eth_port_disable_rx
This bug could result in a system hang.
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 4f36489..4cbf840 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c @@ -2496,8 +2496,8 @@ static unsigned int mv643xx_eth_port_disable_rx(unsigned int port_num) u32 channels; /* Stop Rx port activity. Check port Rx activity. */ - channels = mv_read(MV643XX_ETH_RECEIVE_QUEUE_COMMAND_REG(port_num) - & 0xFF); + channels = mv_read(MV643XX_ETH_RECEIVE_QUEUE_COMMAND_REG(port_num)) + & 0xFF; if (channels) { /* Issue stop command for active channels only */ mv_write(MV643XX_ETH_RECEIVE_QUEUE_COMMAND_REG(port_num), |