diff options
author | kevlo <kevlo@FreeBSD.org> | 2007-11-21 05:51:43 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2007-11-21 05:51:43 +0000 |
commit | 605bcd0e65435f111196a1b72d58370bf5daeba2 (patch) | |
tree | 7176d9bec4a636af53a6cccdc671efc067c69084 /sys/dev/usb | |
parent | 6a4c1655fdd9cbadd4ad601664ee4d2b893c2094 (diff) | |
download | FreeBSD-src-605bcd0e65435f111196a1b72d58370bf5daeba2.zip FreeBSD-src-605bcd0e65435f111196a1b72d58370bf5daeba2.tar.gz |
Fix NULL dereference in rum_txeof()
PR: kern/117820
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_rum.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c index 5543315..a216704 100644 --- a/sys/dev/usb/if_rum.c +++ b/sys/dev/usb/if_rum.c @@ -839,9 +839,8 @@ rum_txeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) struct rum_softc *sc = data->sc; struct ifnet *ifp = sc->sc_ic.ic_ifp; - if (data->m->m_flags & M_TXCB) - ieee80211_process_callback(data->ni, data->m, - status == USBD_NORMAL_COMPLETION ? 0 : ETIMEDOUT); + if (data->m != NULL && data->m->m_flags & M_TXCB) + ieee80211_process_callback(data->ni, data->m, 0/*XXX*/); if (status != USBD_NORMAL_COMPLETION) { if (status == USBD_NOT_STARTED || status == USBD_CANCELLED) |