Merged in iktek01/nuttx (pull request #231)

- fixed a nullptr-dereference on iob_clone

Approved-by: Gregory Nutt
This commit is contained in:
Pascal Speck 2017-03-01 15:24:53 +00:00 committed by Gregory Nutt
commit 1094f85bda

View File

@ -146,7 +146,7 @@ int iob_clone(FAR struct iob_s *iob1, FAR struct iob_s *iob2, bool throttled)
iob1 = iob1->io_flink;
}
while (iob1->io_len <= 0);
while (iob1 && iob1->io_len <= 0);
/* Reset the offset to the beginning of the I/O buffer */