diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2017-02-14 18:34:25 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2017-02-14 18:34:25 +0000 |
| commit | 33d9db92e277d510f3c402580f1aebe954962945 (patch) | |
| tree | 103fab46bec34d9b80f1c5049a37c28a74c130eb /sys/dev/iscsi | |
| parent | 875ac6cfac7b9657285c5251fa06f0003d2134ba (diff) | |
Notes
Diffstat (limited to 'sys/dev/iscsi')
| -rw-r--r-- | sys/dev/iscsi/icl_soft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iscsi/icl_soft.c b/sys/dev/iscsi/icl_soft.c index 7d56bbf932bb..8b87bc903075 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); |
