From ed74d7a11db9675a8e4047a9aab3f173ca890c6e Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sat, 19 Jan 2019 09:29:43 +0200 Subject: 10665 fcoe: NULL pointer errors Reviewed by: Robert Mustacchi Reviewed by: Gergő Doma Approved by: Dan McDonald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/uts/common/io/fcoe/fcoe_fc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/uts/common/io/fcoe/fcoe_fc.c b/usr/src/uts/common/io/fcoe/fcoe_fc.c index 1aab1e5128..42764e48d6 100644 --- a/usr/src/uts/common/io/fcoe/fcoe_fc.c +++ b/usr/src/uts/common/io/fcoe/fcoe_fc.c @@ -208,7 +208,7 @@ fcoe_tx_frame(fcoe_frame_t *frm) tx_frame: ret_cookie = mac_tx(mac->fm_cli_handle, FRM2MBLK(frm), 0, MAC_TX_NO_ENQUEUE, &ret_mblk); - if (ret_cookie != NULL) { + if (ret_cookie != (mac_tx_cookie_t)NULL) { mutex_enter(&mac->fm_mutex); (void) cv_reltimedwait(&mac->fm_tx_cv, &mac->fm_mutex, drv_usectohz(100000), TR_CLOCK_TICK); -- cgit v1.2.3