diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-19 09:29:43 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-05-21 09:14:30 +0300 |
commit | ed74d7a11db9675a8e4047a9aab3f173ca890c6e (patch) | |
tree | a074f9c4d1f18fe763af95d9090f88e43448e2dc | |
parent | c09fb523874c2de6a430f3a5c6b9dfafc4d87329 (diff) | |
download | illumos-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.c | 2 |
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); |