[PATCH rdma/wip/jgg-for-next] fixup! RDMA/restrack: Prepare restrack_root to addition of extra fields per-type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Leon Romanovsky <leonro@xxxxxxxxxxxx>

Fixup to kbuild report:

drivers/infiniband/core/nldev.c:1158:9: sparse: warning: context
imbalance in 'res_get_common_dumpit' - unexpected unlock.

Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
---
Tonight, I got this report from 0-day build, but for some reasons can't
reproduce this result with my local sparse checks.
---
 drivers/infiniband/core/nldev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/nldev.c b/drivers/infiniband/core/nldev.c
index cea5938a0e5e..5e94dc87f04f 100644
--- a/drivers/infiniband/core/nldev.c
+++ b/drivers/infiniband/core/nldev.c
@@ -1138,7 +1138,7 @@ static int res_get_common_dumpit(struct sk_buff *skb,
 		if (!entry_attr) {
 			ret = -EMSGSIZE;
 			rdma_restrack_put(res);
-			break;
+			goto msg_full;
 		}

 		ret = fe->fill_res_func(skb, has_cap_net_admin, res, port);
--
2.19.1




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux