lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c24dc77d4c339d1b1ba4a76cf7c365d970cfca41.camel@perches.com>
Date: Sat, 20 Apr 2024 18:27:44 -0700
From: Joe Perches <joe@...ches.com>
To: sundar <prosunofficial@...il.com>, heikki.krogerus@...ux.intel.com, 
	gregkh@...uxfoundation.org, neil.armstrong@...aro.org, 
	dmitry.baryshkov@...aro.org, u.kleine-koenig@...gutronix.de, 
	christophe.jaillet@...adoo.fr
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org, 
	skhan@...uxfoundation.org, javier.carrasco.cruz@...il.com
Subject: Re: [PATCH v2] remove indentation for common path [linux-next]

On Sun, 2024-04-21 at 06:13 +0530, sundar wrote:
> On 20/04/24 22:37, Joe Perches wrote:
> > On Sat, 2024-04-20 at 22:19 +0530, sundar wrote:
> > 
> > 
> > > ```
> > @@ -321,35 +321,37 @@ static int nb7vpq904m_parse_data_lanes_mapping(struct nb7vpq904m *nb7)
> >   
> >   	ep = of_graph_get_endpoint_by_regs(nb7->client->dev.of_node, 1, 0);
> >   
> > -	if (ep) {
> > -		ret = of_property_count_u32_elems(ep, "data-lanes");
> > -		if (ret == -EINVAL)
> > -			/* Property isn't here, consider default mapping */
> > -			goto out_done;
> > -		if (ret < 0)
> > -			goto out_error;
> > -
> > -		if (ret != DATA_LANES_COUNT) {
> > -			dev_err(&nb7->client->dev, "expected 4 data lanes\n");
> > -			ret = -EINVAL;
> > -			goto out_error;
> > -		}
> > +	if (!ep)
> > +		return 0;
> > ```
> > 
> > 
> > Not equivalent code as the out_error:
> > 
> > 	of_node_put(ep);
> > 
> > isn't done
> > 
> > 
> 
> Hi joe perches,
> 
> If ep is null,  I believe we dont need to call of_node_put.  Because 
> passing null pointer to of_node_put() make no difference.
> 
> In of_node_put() definition, if pointer is null, there is no operation.
> 

Fine, but you should explain that in the changelog
and not make reviewers look it up.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ