linux/drivers/net/ethernet/ibm
Sukadev Bhattiprolu f6ebca8efa ibmvnic: free tx_pool if tso_pool alloc fails
Free tx_pool and clear it, if allocation of tso_pool fails.

release_tx_pools() assumes we have both tx and tso_pools if ->tx_pool is
non-NULL. If allocation of tso_pool fails in init_tx_pools(), the assumption
will not be true and we would end up dereferencing ->tx_buff, ->free_map
fields from a NULL pointer.

Fixes: 3205306c6b ("ibmvnic: Update TX pool initialization routine")
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-24 11:22:23 -07:00
..
ehea ehea: add missing MODULE_DEVICE_TABLE 2021-04-11 16:42:38 -07:00
emac of: Remove of_dev_{get,put}() 2021-02-12 19:23:39 -06:00
ibmveth.c vio: make remove callback return void 2021-03-02 22:41:23 +11:00
ibmveth.h
ibmvnic.c ibmvnic: free tx_pool if tso_pool alloc fails 2021-06-24 11:22:23 -07:00
ibmvnic.h ibmvnic: clean up the remaining debugfs data structures 2021-04-12 13:29:10 -07:00
Kconfig
Makefile