mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
mm/iob: iob members are initialized after allocate
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -413,13 +413,7 @@ int sixlowpan_queue_frames(FAR struct radio_driver_s *radio,
|
||||
iob = net_ioballoc(false);
|
||||
DEBUGASSERT(iob != NULL);
|
||||
|
||||
/* Initialize the IOB */
|
||||
|
||||
iob->io_flink = NULL;
|
||||
iob->io_len = 0;
|
||||
iob->io_offset = 0;
|
||||
iob->io_pktlen = 0;
|
||||
fptr = iob->io_data;
|
||||
fptr = iob->io_data;
|
||||
|
||||
ninfo("Sending packet length %zd\n", buflen);
|
||||
|
||||
@@ -639,10 +633,7 @@ int sixlowpan_queue_frames(FAR struct radio_driver_s *radio,
|
||||
|
||||
/* Initialize the IOB */
|
||||
|
||||
iob->io_flink = NULL;
|
||||
iob->io_len = 0;
|
||||
iob->io_offset = framer_hdrlen;
|
||||
iob->io_pktlen = 0;
|
||||
fptr = iob->io_data;
|
||||
|
||||
/* Copy the HC1/HC06/IPv6 header the frame header from first
|
||||
|
||||
Reference in New Issue
Block a user