summaryrefslogtreecommitdiff
path: root/sys/dev/iscsi
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2017-02-28 06:30:42 +0000
committerAlexander Motin <mav@FreeBSD.org>2017-02-28 06:30:42 +0000
commit367668b0f4b128e9eae766d796976a603a794319 (patch)
tree1a31ec8fe84cb820125cf131c96e1dece873472c /sys/dev/iscsi
parentcda924b58c115a6d29e927d8c665779e21dccc56 (diff)
Notes
Diffstat (limited to 'sys/dev/iscsi')
-rw-r--r--sys/dev/iscsi/icl_soft.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iscsi/icl_soft.c b/sys/dev/iscsi/icl_soft.c
index cde2b475cc2f..2f721529de85 100644
--- a/sys/dev/iscsi/icl_soft.c
+++ b/sys/dev/iscsi/icl_soft.c
@@ -260,8 +260,8 @@ icl_soft_conn_new_pdu(struct icl_conn *ic, int flags)
if (ip == NULL)
return (NULL);
- ip->ip_bhs_mbuf = m_getm2(NULL, sizeof(struct iscsi_bhs),
- flags, MT_DATA, M_PKTHDR);
+ CTASSERT(sizeof(struct iscsi_bhs) <= MHLEN);
+ ip->ip_bhs_mbuf = m_gethdr(flags, MT_DATA);
if (ip->ip_bhs_mbuf == NULL) {
ICL_WARN("failed to allocate BHS mbuf");
icl_pdu_free(ip);