summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/read.c')
-rw-r--r--cpukit/libcsupport/src/read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/read.c b/cpukit/libcsupport/src/read.c
index a5df6a1140..dd3f0c7128 100644
--- a/cpukit/libcsupport/src/read.c
+++ b/cpukit/libcsupport/src/read.c
@@ -32,11 +32,12 @@ ssize_t read(
{
rtems_libio_t *iop;
+ rtems_libio_check_buffer( buffer );
+ rtems_libio_check_count( count );
+
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_with_error( iop, LIBIO_FLAGS_READ, EBADF );
/*