freebsd-dev/sys/ofed/drivers/infiniband
Hans Petter Selasky ad7741ff69 ibcore: Fix possible memory leak in ib_mad_post_receive_mads()
If ib_dma_mapping_error() returns non-zero value,
ib_mad_post_receive_mads() will jump out of loops and return -ENOMEM
without freeing mad_priv. Fix this memory-leak problem by freeing
mad_priv in this case.

Linux commit:
a17f4bed811c60712d8131883cdba11a105d0161

PR:		264057
MFC after:	1 week
Sponsored by:	NVIDIA Networking
2022-05-19 10:13:06 +02:00
..
core ibcore: Fix possible memory leak in ib_mad_post_receive_mads() 2022-05-19 10:13:06 +02:00
ulp sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
util Infiniband clients must be attached and detached in a specific order in ibcore. 2020-07-06 08:50:11 +00:00