diff options
Diffstat (limited to 'c/src/exec/libcsupport/src/read.c')
-rw-r--r-- | c/src/exec/libcsupport/src/read.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/read.c b/c/src/exec/libcsupport/src/read.c index 52f61d9b50..e2866744a4 100644 --- a/c/src/exec/libcsupport/src/read.c +++ b/c/src/exec/libcsupport/src/read.c @@ -25,6 +25,7 @@ ssize_t read( rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); + rtems_libio_check_is_open(iop); rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); |