diff options
Diffstat (limited to 'cpukit/dev/flash/flashdev.c')
-rw-r--r-- | cpukit/dev/flash/flashdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 8363ac96b1..f39f8dde4d 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -320,7 +320,7 @@ static int rtems_flashdev_read_write( int status; if ( read_buff == NULL && write_buff == NULL ) { - return 0; + rtems_set_errno_and_return_minus_one( EINVAL ); } /* Get flash address */ |