[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <170673298869.2247741.13347851675269431650.robh@kernel.org>
Date: Wed, 31 Jan 2024 14:29:50 -0600
From: Rob Herring <robh@...nel.org>
To: "Christian A. Ehrhardt" <lk@...e.de>
Cc: Rob Herring <robh+dt@...nel.org>, kernel test robot <lkp@...el.com>,
Frank Rowand <frowand.list@...il.com>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] of: unittest: Fix compile in the non-dynamic case
On Mon, 29 Jan 2024 20:25:56 +0100, Christian A. Ehrhardt wrote:
> If CONFIG_OF_KOBJ is not set, a device_node does not contain a
> kobj and attempts to access the embedded kobj via kref_read break
> the compile.
>
> Replace affected kref_read calls with a macro that reads the
> refcount if it exists and returns 1 if there is no embedded kobj.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202401291740.VP219WIz-lkp@intel.com/
> Fixes: 4dde83569832 ("of: Fix double free in of_parse_phandle_with_args_map")
> Signed-off-by: Christian A. Ehrhardt <lk@...e.de>
> ---
> drivers/of/unittest.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
Applied, thanks!
Powered by blists - more mailing lists