diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-11-20 17:22:22 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-11-21 13:13:22 -0600 |
commit | abf3892c1a728229d052c4f1c8bda15f31b77cd0 (patch) | |
tree | 235d8ac75763558cea2117a1e560ce966fd12a66 /cpukit/libfs/src/pipe | |
parent | dosfs/fat_fat_operations.c: Explicitly ignore return (Coverity ID 26048) (diff) | |
download | rtems-abf3892c1a728229d052c4f1c8bda15f31b77cd0.tar.bz2 |
pipe/fifo.c: NULL dereference flagged by Coverity ID 1063889
It does not appear that this is possible so adding an assert.
Diffstat (limited to 'cpukit/libfs/src/pipe')
-rw-r--r-- | cpukit/libfs/src/pipe/fifo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index 203b65480a..91d95dc946 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -212,6 +212,7 @@ static int pipe_new( pipe_control_t *pipe; int err = 0; + _Assert( pipep ); err = pipe_lock(); if (err) return err; @@ -223,7 +224,7 @@ static int pipe_new( goto out; } - if (! PIPE_LOCK(pipe)) + if (!PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { |