* [PATCH] opensm/osm_mcast_mgr.c: fix return value on alloc_mfts() failures
@ 2009-11-11 18:33 Sasha Khapyorsky
2009-11-11 20:25 ` Hal Rosenstock
0 siblings, 1 reply; 3+ messages in thread
From: Sasha Khapyorsky @ 2009-11-11 18:33 UTC (permalink / raw)
To: linux-rdma; +Cc: Hal Rosenstock
When alloc_mfts() fails and multicast routing calculation interrupted
return -1 value to a caller.
Signed-off-by: Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>
---
opensm/opensm/osm_mcast_mgr.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/opensm/opensm/osm_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c
index 105e905..7bd7add 100644
--- a/opensm/opensm/osm_mcast_mgr.c
+++ b/opensm/opensm/osm_mcast_mgr.c
@@ -1066,6 +1066,7 @@ int osm_mcast_mgr_process(osm_sm_t * sm)
if (alloc_mfts(sm)) {
OSM_LOG(sm->p_log, OSM_LOG_ERROR,
"ERR 0A07: alloc_mfts failed\n");
+ ret = -1;
goto exit;
}
@@ -1110,6 +1111,7 @@ int osm_mcast_mgr_process_mgroups(osm_sm_t * sm)
if (alloc_mfts(sm)) {
OSM_LOG(sm->p_log, OSM_LOG_ERROR,
"ERR 0A09: alloc_mfts failed\n");
+ ret = -1;
goto exit;
}
--
1.6.5.2
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] opensm/osm_mcast_mgr.c: fix return value on alloc_mfts() failures
2009-11-11 18:33 [PATCH] opensm/osm_mcast_mgr.c: fix return value on alloc_mfts() failures Sasha Khapyorsky
@ 2009-11-11 20:25 ` Hal Rosenstock
[not found] ` <f0e08f230911111225k4b1c30c0y44c13d950d9555b6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Hal Rosenstock @ 2009-11-11 20:25 UTC (permalink / raw)
To: Sasha Khapyorsky; +Cc: linux-rdma
On Wed, Nov 11, 2009 at 1:33 PM, Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org> wrote:
>
> When alloc_mfts() fails and multicast routing calculation interrupted
> return -1 value to a caller.
Yes, that fixes the return value but nothing (at least currently)
takes advantage of that. Is that the next step ?
-- Hal
>
> Signed-off-by: Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org>
> ---
> opensm/opensm/osm_mcast_mgr.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/opensm/opensm/osm_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c
> index 105e905..7bd7add 100644
> --- a/opensm/opensm/osm_mcast_mgr.c
> +++ b/opensm/opensm/osm_mcast_mgr.c
> @@ -1066,6 +1066,7 @@ int osm_mcast_mgr_process(osm_sm_t * sm)
> if (alloc_mfts(sm)) {
> OSM_LOG(sm->p_log, OSM_LOG_ERROR,
> "ERR 0A07: alloc_mfts failed\n");
> + ret = -1;
> goto exit;
> }
>
> @@ -1110,6 +1111,7 @@ int osm_mcast_mgr_process_mgroups(osm_sm_t * sm)
> if (alloc_mfts(sm)) {
> OSM_LOG(sm->p_log, OSM_LOG_ERROR,
> "ERR 0A09: alloc_mfts failed\n");
> + ret = -1;
> goto exit;
> }
>
> --
> 1.6.5.2
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] opensm/osm_mcast_mgr.c: fix return value on alloc_mfts() failures
[not found] ` <f0e08f230911111225k4b1c30c0y44c13d950d9555b6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-11-12 1:56 ` Sasha Khapyorsky
0 siblings, 0 replies; 3+ messages in thread
From: Sasha Khapyorsky @ 2009-11-12 1:56 UTC (permalink / raw)
To: Hal Rosenstock; +Cc: linux-rdma
On 15:25 Wed 11 Nov , Hal Rosenstock wrote:
>
> Yes, that fixes the return value but nothing (at least currently)
> takes advantage of that. Is that the next step ?
Yes, it should be done this way.
Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-12 1:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11 18:33 [PATCH] opensm/osm_mcast_mgr.c: fix return value on alloc_mfts() failures Sasha Khapyorsky
2009-11-11 20:25 ` Hal Rosenstock
[not found] ` <f0e08f230911111225k4b1c30c0y44c13d950d9555b6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-12 1:56 ` Sasha Khapyorsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox