public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: abdellatif.elkhlifi@arm.com
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 1/8] arm_ffa: Add NULL pointer check to the driver operations
Date: Fri, 1 Nov 2024 17:14:24 +0200	[thread overview]
Message-ID: <ZyTwUFY-peThqXTe@hera> (raw)
In-Reply-To: <20241101142017.79311-2-abdellatif.elkhlifi@arm.com>

Hi Abdellatif,

Something is wrong on your setup and you only cc'ed people on the cover
letter.

On Fri, Nov 01, 2024 at 02:20:10PM +0000, abdellatif.elkhlifi@arm.com wrote:
> From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
>
> Add NULL pointer check for ops
>
> Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
> ---
>  drivers/firmware/arm-ffa/arm-ffa-uclass.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/firmware/arm-ffa/arm-ffa-uclass.c b/drivers/firmware/arm-ffa/arm-ffa-uclass.c
> index 96c64964bb7..5ec7654ed1c 100644
> --- a/drivers/firmware/arm-ffa/arm-ffa-uclass.c
> +++ b/drivers/firmware/arm-ffa/arm-ffa-uclass.c
> @@ -1,6 +1,6 @@
>  // SPDX-License-Identifier: GPL-2.0+
>  /*
> - * Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
> + * Copyright 2022-2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
>   *
>   * Authors:
>   *   Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
> @@ -954,7 +954,7 @@ int ffa_partition_info_get(struct udevice *dev, const char *uuid_str,
>  {
>  	struct ffa_bus_ops *ops = ffa_get_ops(dev);
>
> -	if (!ops->partition_info_get)
> +	if (!ops || !ops->partition_info_get)
>  		return -ENOSYS;
>
>  	return ops->partition_info_get(dev, uuid_str, sp_count, sp_descs);
> @@ -979,7 +979,7 @@ int ffa_sync_send_receive(struct udevice *dev, u16 dst_part_id,
>  {
>  	struct ffa_bus_ops *ops = ffa_get_ops(dev);
>
> -	if (!ops->sync_send_receive)
> +	if (!ops || !ops->sync_send_receive)
>  		return -ENOSYS;
>
>  	return ops->sync_send_receive(dev, dst_part_id, msg, is_smc64);
> @@ -1000,7 +1000,7 @@ int ffa_rxtx_unmap(struct udevice *dev)
>  {
>  	struct ffa_bus_ops *ops = ffa_get_ops(dev);
>
> -	if (!ops->rxtx_unmap)
> +	if (!ops || !ops->rxtx_unmap)
>  		return -ENOSYS;
>
>  	return ops->rxtx_unmap(dev);
> --
> 2.25.1
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>

  reply	other threads:[~2024-11-01 15:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-01 14:20 [PATCH 0/8] arm_ffa: Add FFA_MEM_SHARE and FFA_MEM_RECLAIM support abdellatif.elkhlifi
2024-11-01 14:20 ` [PATCH 1/8] arm_ffa: Add NULL pointer check to the driver operations abdellatif.elkhlifi
2024-11-01 15:14   ` Ilias Apalodimas [this message]
2024-11-04 12:48   ` Jens Wiklander
2024-11-01 14:20 ` [PATCH 2/8] arm_ffa: Add FFA_MEM_SHARE support abdellatif.elkhlifi
2024-11-01 14:20 ` [PATCH 3/8] arm_ffa: Add FFA_MEM_RECLAIM support abdellatif.elkhlifi
2024-11-01 15:21   ` Ilias Apalodimas
2024-11-04 11:22     ` Abdellatif El Khlifi
2024-11-01 14:20 ` [PATCH 4/8] arm_ffa: sandbox: Replace the emulator error log with debug log abdellatif.elkhlifi
2024-11-01 15:16   ` Ilias Apalodimas
2024-11-01 14:20 ` [PATCH 5/8] arm_ffa: sandbox: Add FFA_MEM_SHARE emulation abdellatif.elkhlifi
2024-11-01 14:20 ` [PATCH 6/8] arm_ffa: sandbox: Add FFA_MEM_SHARE tests abdellatif.elkhlifi
2024-11-01 14:20 ` [PATCH 7/8] arm_ffa: sandbox: Add FFA_MEM_RECLAIM emulation abdellatif.elkhlifi
2024-11-01 14:20 ` [PATCH 8/8] arm_ffa: sandbox: Add FFA_MEM_RECLAIM tests abdellatif.elkhlifi
2024-11-07 15:33 ` [PATCH 0/8] arm_ffa: Add FFA_MEM_SHARE and FFA_MEM_RECLAIM support Abdellatif El Khlifi
2024-11-20 13:13   ` Abdellatif El Khlifi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZyTwUFY-peThqXTe@hera \
    --to=ilias.apalodimas@linaro.org \
    --cc=abdellatif.elkhlifi@arm.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox