]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: IB: Destroy aux_wq if rds_ib_init() fails
authorAvinash Repaka <avinash.repaka@oracle.com>
Thu, 31 Aug 2017 21:37:42 +0000 (14:37 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Sep 2017 04:27:04 +0000 (21:27 -0700)
commit2198b5347fa01fb24a991d93d940d21e4cc37105
treef95b251d3e4af00dd216af81747745061f62f6be
parentaddfc71dbf7ad70a2f67d2f50139f1de42ac2500
RDS: IB: Destroy aux_wq if rds_ib_init() fails

This patch destroys rds_aux_wq in rds_ib_init() error path to avoid
memory leak. Since destroy_workqueue() waits on pending work to be done,
we can remove flush_workqueue() prior to destroying.

Orabug: 26732887

Signed-off-by: Avinash Repaka <avinash.repaka@oracle.com>
Reviewed-by: Gerd Rausch <gerd.rausch@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
net/rds/ib.c