flashdev.c: return error if both buffers are NULL

Updates #4981
This commit is contained in:
Bernd Moessner
2024-01-07 10:21:40 +01:00
committed by Joel Sherrill
parent bd898b503f
commit a73b52d6a4

View File

@@ -320,7 +320,7 @@ static int rtems_flashdev_read_write(
int status; int status;
if ( read_buff == NULL && write_buff == NULL ) { if ( read_buff == NULL && write_buff == NULL ) {
return 0; rtems_set_errno_and_return_minus_one( EINVAL );
} }
/* Get flash address */ /* Get flash address */