[PATCH rtems6 - v2 06/16] flashdev.c: return error in case neither
Kinsey Moore
kinsey.moore at oarcorp.com
Tue Jan 9 23:04:32 UTC 2024
This patch looks good.
Kinsey
On Sun, Jan 7, 2024 at 12:19 PM <berndmoessner80 at gmail.com> wrote:
> From: Bernd Moessner <berndmoessner80 at gmail.com>
>
> Updates #4981
> ---
> cpukit/dev/flash/flashdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c
> index 8bd3d11246..7bc13ed70a 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 */
> --
> 2.34.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20240109/11296c3b/attachment.htm>
More information about the devel
mailing list