From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53D1315C14D for ; Mon, 5 Aug 2024 17:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722879419; cv=none; b=faV8rOLPb9RvfCX+0gU9sJGBzpkENMSxbH3RHwHRKKjbZsdQRnk6B3tUJ0HqkhCPxAx9kIQp/sWT+2Bmg5b/x7GjM1cH+79zHHbcP7VU6EkrmuzmAqAt2YmA/s4yRPgyhGWB8Y3d5xNJbBc1Go3Jyyeb3gOaXLqk9hmJHvnoxSs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722879419; c=relaxed/simple; bh=DA4369ep4aRCQk372N75Nbh4WuAp1GA6UZSDUFqv2dw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=W2V6ri+5WxBOOWzGMxmWCxcCtTayxvLYfDv7ZZx8JU5oVI7CyFN8xWLbwuSmW7ZmX9VxQsc0yPOIBv+Um/7UkQyuHbVSlbfszI+m0+g3z9/liwhzz9uX4NHyGBteosah1w3ZSdDtIZ3UdBynMoPjd53Uz8CqCTje5x4UsWeP0CM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=hoNPu7KV; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="hoNPu7KV" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-70d19d768c2so8050323b3a.3 for ; Mon, 05 Aug 2024 10:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1722879416; x=1723484216; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=goLTI1Me9QFdEbbxVvS9O2vJ+EscEBdu5wB58pG03Vg=; b=hoNPu7KVe16tyK3HBS81ej5DinAgGit+Kh8aCXz+Keu/Rhzg3R9cKFO2+78BTZfPm0 Ka82pTZOA89HEH8lXkEDlh3T0jn+YMXIvFfvYq7idyo8BXWwknaouZopTd0WNmSv+xEF PJqQifvgnFSaKRz5R/+7qcQn2R5aDn0Rru7Rc6/jqKO3frQKSv9Q3moG6mdYy3fAqKEb KSj6ynx3EnpqmRSgkGd7guqdknnjP9GdnvhJxyrNahdyWvNP+NV8ZrtOr/O85VtQ3N3C zpXSqx+wR6kHSUkc2PfS00kmW/HRh/j0nqWUg8vgC/zSlythBW86GO7tp4ve6uv0bo96 Jbcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722879416; x=1723484216; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=goLTI1Me9QFdEbbxVvS9O2vJ+EscEBdu5wB58pG03Vg=; b=wQa2knK16gObSf6oLV+x/aIm/0m0ScDnWpGp+mhzWe078xbN5fjI/eA7cIhDEhFedL cd6py0Xk52kSneoLHtCVK60EYGVfjJqfjvc/6zye2aEYNLw4ZJhqJvQsRR0OmTHnddpE 6WW+FxvnChqPbkLh9DTC96Iviw/NdLR8ERcvi71VUsgeqL1adO21GZvoHf4CSebq02oR IGQpRy4CuvBKGYjZvnT7qNaAAqxTbmtUW+/nLbn5yXR9U0hN6PkCWC9NL82P+rTdi4Uw P7sp8qjTOSsJsyJR3lANgkg4t9K+ZXh1+t8Ullk+Lz5tO8lX5w5QYkpdDVC68j2Bt2pU n2rg== X-Forwarded-Encrypted: i=1; AJvYcCXq3cIifD/kounCP7QcmwHeDEjV5nrhmHbSeKUvMbygjtkhzMi768KGA2cFhufTd2okq4ZxSdaao7+q4Z00Lhoog/sDIa1zNwTFJgL6 X-Gm-Message-State: AOJu0Ywtw/+02hR5ILxH61zR+sqLb5NjDBVTo2LZGw6MIxJ2fKKZ1+q3 5wi2OI0t4M/Fedrd3VV1XM8tEWVcRwuorOJqPBAEdiN2sddStRGHiJdvVo8uz1I= X-Google-Smtp-Source: AGHT+IEPsJOZd0kXjvfZc+Q2Cp9lgQmjHsAvWtcR1BuMvVvN70ionSp87ecT9lwzcXMvoxWe9CNzPA== X-Received: by 2002:a05:6a21:3383:b0:1c3:ff33:2472 with SMTP id adf61e73a8af0-1c6996a5f4emr11522868637.51.1722879416615; Mon, 05 Aug 2024 10:36:56 -0700 (PDT) Received: from localhost ([71.212.170.185]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ecfd196sm5665573b3a.161.2024.08.05.10.36.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 10:36:56 -0700 (PDT) From: Kevin Hilman To: Roger Quadros , "Rob Herring (Arm)" , Aaro Koskinen , Andreas Kemnade , Tony Lindgren Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] bus: ti-sysc: Use of_property_present() In-Reply-To: <2ff177ed-a5e8-46ad-9902-14f377033da2@kernel.org> References: <20240731191312.1710417-1-robh@kernel.org> <2ff177ed-a5e8-46ad-9902-14f377033da2@kernel.org> Date: Mon, 05 Aug 2024 10:36:55 -0700 Message-ID: <7hy15a3m88.fsf@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Hi Roger, Roger Quadros writes: > On 31/07/2024 22:12, Rob Herring (Arm) wrote: >> Use of_property_present() to test for property presence rather than >> of_get_property(). This is part of a larger effort to remove callers >> of of_get_property() and similar functions. of_get_property() leaks >> the DT property data pointer which is a problem for dynamically >> allocated nodes which may be freed. >> >> The code was also incorrectly assigning the return value to a 'struct >> property' pointer. It didn't matter as "prop" was never dereferenced. >> >> Signed-off-by: Rob Herring (Arm) > > Reviewed by: Roger Quadros just FYI, missing a '-' in your Reviewed-by, which means tools like b4 will not spot it. I added it manually this time cuz I happened to notice it was missing. Kevin