summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-19 09:29:43 +0200
committerToomas Soome <tsoome@me.com>2019-05-21 09:14:30 +0300
commited74d7a11db9675a8e4047a9aab3f173ca890c6e (patch)
treea074f9c4d1f18fe763af95d9090f88e43448e2dc
parentc09fb523874c2de6a430f3a5c6b9dfafc4d87329 (diff)
downloadillumos-joyent-ed74d7a11db9675a8e4047a9aab3f173ca890c6e.tar.gz
10665 fcoe: NULL pointer errors
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/io/fcoe/fcoe_fc.c2
1 files changed, 1 insertions, 1 deletions
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);