Thread (9 messages) 9 messages, 4 authors, 2024-05-23

RE: Re: [PATCH v2] ax25: Fix refcount imbalance on inbound connections

From: Naveen Mamindlapalli <hidden>
Date: 2024-05-23 06:37:36
Also in: linux-hams

-----Original Message-----
From: Lars Kellogg-Stedman <redacted>
Sent: Tuesday, May 21, 2024 11:27 PM
To: Naveen Mamindlapalli <redacted>
Cc: netdev@vger.kernel.org; linux-hams@vger.kernel.org
Subject: Re: [PATCH v2] ax25: Fix refcount imbalance on inbound
connections

On Tue, May 21, 2024 at 05:21:40PM GMT, Naveen Mamindlapalli wrote:
quoted
quoted
socket *newsock,
 	DEFINE_WAIT(wait);
 	struct sock *sk;
 	int err = 0;
+	ax25_cb *ax25;
+	ax25_dev *ax25_dev;
nit: Please follow reverse Christmas tree.
That is a new phrase for me; I had to look it up. Do you mean this:

        DEFINE_WAIT(wait);
        struct sock *sk;
        int err = 0;
+	      ax25_dev *ax25_dev;
+	      ax25_cb *ax25;

Or should I apply this to the entire block of variable declarations, like this:

        struct sk_buff *skb;
        struct sock *newsk;
+       ax25_dev *ax25_dev;
        DEFINE_WAIT(wait);
        struct sock *sk;
+       ax25_cb *ax25;
        int err = 0;
Yes, apply reverse xmas tree order to entire block.

Thanks,
Naveen
Thanks,

--
Lars Kellogg-Stedman [off-list ref] | larsks @ {irc,twitter,github}
https://urldefense.proofpoint.com/v2/url?u=http-
3A__blog.oddbit.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=TwreqwV6
mQ8K9wIpqwFO8yjikO_w1jUOe2MzChg4Rmg&m=FtlS2pOuM2TyZSjXUe6s5L7w
o2YtvcK9Ep3HQRqf8dMeSy9VLui3rMQDUcVMFLcK&s=0fvO6BKSQQg3niGImy4
VLvjVZ0kOAeAjIB2WwdZNYRs&e=                 | N1LKS
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help