mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
Check return from nxsem_wait_initialize()
Resolution of Issue 619 will require multiple steps, this part of the first step in that resolution: Every call to nxsem_wait_uninterruptible() must handle the return value from nxsem_wait_uninterruptible properly. This commit is only for rwbuffer.c and those files under drivers/serial, drivers/timers, and drivers/usbdev. This commit completes that step for all of the files under drivers/. Still remaining: All of the files under arch/.
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
a7415058e5
commit
9ff1795760
+1
-1
@@ -1260,7 +1260,7 @@ static ssize_t tun_read(FAR struct file *filep, FAR char *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct tun_device_s *priv = filep->f_priv;
|
||||
ssize_t nread;
|
||||
ssize_t nread = 0;
|
||||
int ret;
|
||||
|
||||
if (priv == NULL)
|
||||
|
||||
Reference in New Issue
Block a user