[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YoyU4zXf45UpF1Tq@kroah.com>
Date: Tue, 24 May 2022 10:18:43 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Larry Finger <Larry.Finger@...inger.net>
Cc: Pavel Skripkin <paskripkin@...il.com>,
Martin Kaiser <lists@...ser.cx>,
Jiasheng Jiang <jiasheng@...as.ac.cn>,
dan.carpenter@...cle.com, phil@...lpotter.co.uk,
straube.linux@...il.com, fmdefrancesco@...il.com,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] staging: r8188eu: add check for kzalloc
On Sat, May 21, 2022 at 04:57:17PM -0500, Larry Finger wrote:
> On 5/21/22 15:26, Pavel Skripkin wrote:
> > Hi Martin,
> >
> > On 5/21/22 18:50, Martin Kaiser wrote:
> > >
> > > > for (i = 0; i < 4; i++)
> > > > @@ -1474,7 +1479,7 @@ s32 rtw_xmit_classifier(struct adapter
> > > > *padapter, struct xmit_frame *pxmitframe)
> > >
> > >
> > > res is still 0 here - but the caller of _rtw_init_xmit_priv compares
> > > this return value with _SUCCESS (1) or _FAIL (0) and interprets it as
> > > _FAIL.
> > >
> >
> > I think, it's time to make
> >
> > s/_SUCCESS/0/
> > s/_FAIL/-1
> >
> > since developers from outside of staging are confused.
> > The main problem will be with functions that return an int (or s32).
> >
> > Will take a look.
>
> I agree; however, this change will likely break a lot of pending patches.
>
>
> @GregKH: Could you apply all pending patches in preparation for this patch?
> If so, then Pavel could make this transformation while the list is
> relatively idle.
Everything up to last week was already merged, and my tree is now closed
due to the merge window. So send away. Merge issues can be addressed
over time, and rebasing is always easier than making the patchset to
start with, so this shouldn't be that big of an issue.
thanks,
greg k-h
Powered by blists - more mailing lists