Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[phantom] Initialise RCVPEG before reading MAC addresses
  • Loading branch information
Michael Brown committed Jul 8, 2008
1 parent 0436e41 commit 4f05d2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/drivers/net/phantom/phantom.c
Expand Up @@ -1863,17 +1863,17 @@ static int phantom_probe ( struct pci_device *pci,
if ( ( rc = phantom_init_cmdpeg ( phantom ) ) != 0 )
goto err_init_cmdpeg;

/* Initialise the receive firmware */
if ( ( rc = phantom_init_rcvpeg ( phantom ) ) != 0 )
goto err_init_rcvpeg;

/* Read MAC addresses */
for ( i = 0 ; i < phantom->num_ports ; i++ ) {
phantom_port = netdev_priv ( phantom->netdev[i] );
phantom_get_macaddr ( phantom_port,
phantom->netdev[i]->ll_addr );
}

/* Initialise the receive firmware */
if ( ( rc = phantom_init_rcvpeg ( phantom ) ) != 0 )
goto err_init_rcvpeg;

/* Register network devices */
for ( i = 0 ; i < phantom->num_ports ; i++ ) {
if ( ( rc = register_netdev ( phantom->netdev[i] ) ) != 0 ) {
Expand Down

0 comments on commit 4f05d2f

Please sign in to comment.