All of lore.kernel.org
 help / color / mirror / Atom feed
* re: sctp: Add ASCONF operation on the single-homed host
@ 2011-06-08  6:53 Dan Carpenter
  2011-06-08  6:57 ` Michio Honda
  2013-02-25  7:40 ` Dan Carpenter
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2011-06-08  6:53 UTC (permalink / raw)
  To: linux-sctp

This code was added in 8a07eb0a50a "sctp: Add ASCONF operation on
the single-homed host".

   784                  if ((laddr = NULL) && (addrcnt = 1)) {
   785                          if (asoc->asconf_addr_del_pending)
   786                                  continue;
   787                          asoc->asconf_addr_del_pending    788                              kzalloc(sizeof(union sctp_addr), GFP_ATOMIC);
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	We need some error handling here if the allocation fails.

   789                          asoc->asconf_addr_del_pending->sa.sa_family    790                                      addrs->sa_family;
   791                          asoc->asconf_addr_del_pending->v4.sin_port    792                                      htons(bp->port);

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-25  7:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08  6:53 sctp: Add ASCONF operation on the single-homed host Dan Carpenter
2011-06-08  6:57 ` Michio Honda
2013-02-25  7:40 ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.