From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Chiu Subject: [PATCH] libibmad: To handle null dev_name in madrpc_init Date: Tue, 12 Mar 2013 12:38:52 -0700 Message-ID: <513F844C.9060906@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ira Weiny Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org From: Brendan Doyle Signed-off-by: Brendan Doyle --- src/rpc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/rpc.c b/src/rpc.c index 6312d42..cb224fd 100644 --- a/src/rpc.c +++ b/src/rpc.c @@ -360,7 +360,8 @@ madrpc_init(char *dev_name, int dev_port, int *mgmt_classes, int num_classes) IBPANIC("can't init UMAD library"); if ((fd = umad_open_port(dev_name, dev_port)) < 0) - IBPANIC("can't open UMAD port (%s:%d)", dev_name, dev_port); + IBPANIC("can't open UMAD port (%s:%d)", + dev_name ? dev_name : "(nil)", dev_port); if (num_classes >= MAX_CLASS) IBPANIC("too many classes %d requested", num_classes); -- 1.7.1 -- 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