]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Fix an error handling path in 'res_get_common_doit()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 18 Aug 2019 09:10:44 +0000 (11:10 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 4 Oct 2019 17:55:18 +0000 (14:55 -0300)
commitd6394e228c15b419bd23c9dd4239c8f4a8638126
treeba05ad5cfa50889e46f549594b810725eef922a3
parent8d341d36a628cbaa1d9ab40d4ff55f568ce0ae93
RDMA/core: Fix an error handling path in 'res_get_common_doit()'

According to surrounding error paths, it is likely that 'goto err_get;' is
expected here. Otherwise, a call to 'rdma_restrack_put(res);' would be
missing.

Fixes: 0f5d9691adf8 ("RDMA/nldev: Add resource tracker doit callback")
Link: https://lore.kernel.org/r/20190818091044.8845-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/nldev.c