summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-20 22:55:08 +0200
committerToomas Soome <tsoome@me.com>2019-04-22 08:12:56 +0300
commitaabaa37a39655f3a4bc4cb0c5d7d9ad5927c3323 (patch)
tree2aea4caef5f6c2de0b064858f4773107f937415a
parent3e1e1e62b0c0f0f7b5ebf7025cfa7f3e715f7cee (diff)
downloadillumos-joyent-aabaa37a39655f3a4bc4cb0c5d7d9ad5927c3323.tar.gz
10803 xnbo: NULL pointer errors
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/uts/common/xen/io/xnbo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/xen/io/xnbo.c b/usr/src/uts/common/xen/io/xnbo.c
index 9a51328896..70d4d79f3d 100644
--- a/usr/src/uts/common/xen/io/xnbo.c
+++ b/usr/src/uts/common/xen/io/xnbo.c
@@ -99,7 +99,7 @@ xnbo_to_mac(xnb_t *xnbp, mblk_t *mp)
}
if (mac_tx(xnbop->o_mch, mp, 0,
- MAC_DROP_ON_NO_DESC, NULL) != NULL) {
+ MAC_DROP_ON_NO_DESC, NULL) != (mac_tx_cookie_t)NULL) {
xnbp->xnb_stat_mac_full++;
}