aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/of-fpga-region.c
diff options
context:
space:
mode:
authorSukadev Bhattiprolu <[email protected]>2021-06-24 04:13:15 +0000
committerDavid S. Miller <[email protected]>2021-06-24 18:22:23 +0000
commitf6ebca8efa52e4ae770f0325d618e7bcf08ada0c (patch)
treed06849d4357b8755fd9c8125f13e860b3c206701 /drivers/fpga/of-fpga-region.c
parentibmvnic: set ltb->buff to NULL after freeing (diff)
downloadkernel-f6ebca8efa52e4ae770f0325d618e7bcf08ada0c.tar.gz
kernel-f6ebca8efa52e4ae770f0325d618e7bcf08ada0c.zip
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: 3205306c6b8d ("ibmvnic: Update TX pool initialization routine") Signed-off-by: Sukadev Bhattiprolu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
0 files changed, 0 insertions, 0 deletions