summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-05-19 05:29:05 +0000
committerrwatson <rwatson@FreeBSD.org>2007-05-19 05:29:05 +0000
commitb354f6c72b4663a761ec77e6df5a772b36cc17e3 (patch)
tree335b1727971ddd969bc5b03f5b9a19b3c27a2d92 /sys
parent1a5e79cbeb29368e20f07345e37c817a15558081 (diff)
downloadFreeBSD-src-b354f6c72b4663a761ec77e6df5a772b36cc17e3.zip
FreeBSD-src-b354f6c72b4663a761ec77e6df5a772b36cc17e3.tar.gz
Check return value of m_pullup() in firewire_input().
CID: 2105 Found with: Coverity Prevent(tm)
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_fwsubr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c
index a39f194..c5008ee 100644
--- a/sys/net/if_fwsubr.c
+++ b/sys/net/if_fwsubr.c
@@ -517,6 +517,8 @@ firewire_input(struct ifnet *ifp, struct mbuf *m, uint16_t src)
}
m = m_pullup(m, sizeof(uint32_t));
+ if (m == NULL)
+ return;
enc = mtod(m, union fw_encap *);
/*
OpenPOWER on IntegriCloud