]> git.baikalelectronics.ru Git - kernel.git/commit
bna: Initialization and Locking Fix
authorRasesh Mody <rmody@brocade.com>
Tue, 30 Aug 2011 15:27:42 +0000 (15:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2011 19:36:33 +0000 (15:36 -0400)
commit8bf0bb28653a6b5089a3ff968a8e9899bcacdaf8
tree281038c056cd2c9588858caf7043c66bbf577500
parent05f1367dfa5a6fd1d112ab79d0137be1a9f9a187
bna: Initialization and Locking Fix

Change details:
 - Initialize rx_id to 0 for bnad_cleanup_rx
 - Return -ENOMEM in case if bna_rx_create fails
 - Count the Rx buffer allocation failures in bnad_alloc_n_post_rxbufs()
 - Remove unnecessary initialization of using_dac to false in bnad_pci_probe
 - Release lock if error while doing bna_num_txq_set in bnad_pci_probe

Signed-off-by: Gurunatha Karaje <gkaraje@brocade.com>
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bna_hw_defs.h
drivers/net/ethernet/brocade/bna/bnad.c