]> err.no Git - linux-2.6/commitdiff
[PATCH] mv643xx_eth: Fix misplaced parenthesis in mv643xx_eth_port_disable_rx
authorDale Farnsworth <dale@farnsworth.org>
Fri, 3 Mar 2006 16:59:28 +0000 (09:59 -0700)
committerJeff Garzik <jeff@garzik.org>
Fri, 3 Mar 2006 17:12:36 +0000 (12:12 -0500)
This bug could result in a system hang.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/mv643xx_eth.c

index 4f36489e7cdb76ff52445cebcd5020724e748053..4cbf84052b0ff39345d8815b906f93e943b5cb86 100644 (file)
@@ -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),