Avoid NULL dereference in nd6_storelladdr when no mbuf is provided. It

is called this way from a couple of places in the OFED code.  (toecore
calls it too but that's going to change shortly).

Reviewed by:	bz@
This commit is contained in:
Navdeep Parhar 2013-01-25 23:11:13 +00:00
parent 460cf046c2
commit f31b83e118
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245922

View File

@ -2166,7 +2166,7 @@ nd6_storelladdr(struct ifnet *ifp, struct mbuf *m,
*lle = NULL;
IF_AFDATA_UNLOCK_ASSERT(ifp);
if (m->m_flags & M_MCAST) {
if (m != NULL && m->m_flags & M_MCAST) {
int i;
switch (ifp->if_type) {