Files
linux/drivers
Sukadev Bhattiprolu 4194876ced ibmvnic: free tx_pool if tso_pool alloc fails
[ Upstream commit f6ebca8efa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:15:52 +02:00
..
2021-07-20 16:15:47 +02:00
2020-09-09 19:04:23 +02:00
2021-01-17 14:04:22 +01:00
2020-12-30 11:26:04 +01:00
2021-04-07 12:48:48 +02:00