[PATCH net v2] ibmvnic fix NULL tx_pools and rx_tools issue at do_reset

David Miller davem at davemloft.net
Wed Aug 26 03:08:05 AEST 2020


From: Dany Madden <drt at linux.ibm.com>
Date: Tue, 25 Aug 2020 12:56:06 -0400

> @@ -2011,7 +2017,10 @@ static int do_reset(struct ibmvnic_adapter *adapter,
>  		    adapter->req_rx_add_entries_per_subcrq !=
>  		    old_num_rx_slots ||
>  		    adapter->req_tx_entries_per_subcrq !=
> -		    old_num_tx_slots) {
> +		    old_num_tx_slots ||
> +			!adapter->rx_pool ||
> +			!adapter->tso_pool ||
> +			!adapter->tx_pool) {

Please don't over indent these new lines, indent them identically as the
lines above where you are adding new conditions.

Thank you.


More information about the Linuxppc-dev mailing list