mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Check for an allocation failure before dereferencing the pointer.
Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> Reviewed by: np MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18310
This commit is contained in:
parent
d28d5e1457
commit
423700997b
1 changed files with 1 additions and 1 deletions
|
|
@ -449,9 +449,9 @@ do_rx_iscsi_ddp(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
|
|||
struct icl_pdu *ip0;
|
||||
|
||||
ip0 = icl_cxgbei_new_pdu(M_NOWAIT);
|
||||
icl_cxgbei_new_pdu_set_conn(ip0, ic);
|
||||
if (ip0 == NULL)
|
||||
CXGBE_UNIMPLEMENTED("PDU allocation failure");
|
||||
icl_cxgbei_new_pdu_set_conn(ip0, ic);
|
||||
icp0 = ip_to_icp(ip0);
|
||||
icp0->icp_seq = 0; /* XXX */
|
||||
icp0->icp_flags = ICPF_RX_HDR | ICPF_RX_STATUS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue