From: Yuval Shaia Date: Thu, 9 Jun 2016 18:41:32 +0000 (-0700) Subject: net/rds: Skip packet filtering if interface does not support ACL X-Git-Tag: v4.1.12-92~108^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c3d437478f3000d1e4c03d5a98ad2391abea04c2;p=users%2Fjedix%2Flinux-maple.git net/rds: Skip packet filtering if interface does not support ACL NULL value returned from ib_cm_dpp_acl_lookup for a given DPP means that this DPP is not under ACL protection. In this case we skip packet filtering. Orabug: 23541567 Signed-off-by: Yuval Shaia Acked-by: Santosh Shilimkar --- diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c index a1e25d70825cd..5a6c8a7b68321 100644 --- a/net/rds/ib_cm.c +++ b/net/rds/ib_cm.c @@ -211,7 +211,7 @@ static int rds_ib_match_acl(struct rdma_cm_id *cm_id, __be32 saddr) ntohs(cm_id->route.path_rec->pkey)); acl = ib_cm_dpp_acl_lookup(&dpp); if (!acl) - goto out; + return 0; if (!acl->enabled) return 0;