]> git.baikalelectronics.ru Git - kernel.git/commit
iw_cxgb4: Fix an error handling path in 'c4iw_get_dma_mr()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 8 May 2018 05:44:27 +0000 (07:44 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 14:45:19 +0000 (10:45 -0400)
commit902632aa929b96b6fd1c642f9768efc00fae7bfe
treefdb9533bc7357e9633b544eedbe1c82a889fc30e
parentf8d444fb0b1b8fffb63d0400dbca6bed9f73e6e9
iw_cxgb4: Fix an error handling path in 'c4iw_get_dma_mr()'

The error handling path of 'c4iw_get_dma_mr()' does not free resources
in the correct order.
If an error occures, it can leak 'mhp->wr_waitp'.

Fixes: 3d35439409dc ("iw_cxgb4: allocate wait object for each memory object")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/mem.c