From dd26c2a4ed479de9278176640c3799952ea71ae2 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sat, 19 Jan 2019 17:52:04 +0200 Subject: 10719 eibnx: NULL pointer errors Reviewed by: John Levon Approved by: Dan McDonald --- usr/src/uts/common/io/ib/clients/eoib/enx_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/src/uts/common/io/ib/clients/eoib/enx_misc.c b/usr/src/uts/common/io/ib/clients/eoib/enx_misc.c index a79cdb084f..a465dd3dce 100644 --- a/usr/src/uts/common/io/ib/clients/eoib/enx_misc.c +++ b/usr/src/uts/common/io/ib/clients/eoib/enx_misc.c @@ -616,7 +616,7 @@ eibnx_make_nodename(eibnx_thr_info_t *info, uint16_t gw_portid) { char *name; - if (info->ti_ident[0] == NULL) + if (info->ti_ident[0] == '\0') return (NULL); name = kmem_zalloc(MAXNAMELEN, KM_SLEEP); -- cgit v1.2.3