* [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup
@ 2018-01-12 21:41 Christophe JAILLET
2018-02-12 8:48 ` Felipe Balbi
0 siblings, 1 reply; 3+ messages in thread
From: Christophe JAILLET @ 2018-01-12 21:41 UTC (permalink / raw)
To: balbi, gregkh, bhumirks, leoyang.li
Cc: linux-usb, linux-kernel, kernel-janitors, Christophe JAILLET
This serie aims to fix 2 issues. (path 2 & 4)
The 2nd patch fixes a memory leak. It uses devm_ function a simplify the
handling of the memory.
The 4th patch fixes a potential invalid pointer dereference.
The 2 other ones, are just clean-ups to remove useless code and add other
uses of devm_ function to simplify code.
I've left the request_irq/free_irq because I'm unsure of potential side
effects if some other resources are freed while an IRQ can still be
triggered. So I've preferred to leave it as-is.
Christophe JAILLET (4):
usb: gadget: fotg210-udc: Remove a useless
usb: gadget: fotg210-udc: Fix a memory leak
usb: gadget: fotg210-udc: Simplify code
usb: gadget: fotg210-udc: Fix a potential invalid pointer dereference
drivers/usb/gadget/udc/fotg210-udc.c | 41 ++++++++++++------------------------
1 file changed, 14 insertions(+), 27 deletions(-)
--
2.14.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup
2018-01-12 21:41 [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup Christophe JAILLET
@ 2018-02-12 8:48 ` Felipe Balbi
[not found] ` <p5sksu$4pc$1@blaine.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2018-02-12 8:48 UTC (permalink / raw)
To: Christophe JAILLET, gregkh, bhumirks, leoyang.li
Cc: linux-usb, linux-kernel, kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]
Hi,
Christophe JAILLET <christophe.jaillet@wanadoo.fr> writes:
> This serie aims to fix 2 issues. (path 2 & 4)
>
> The 2nd patch fixes a memory leak. It uses devm_ function a simplify the
> handling of the memory.
>
> The 4th patch fixes a potential invalid pointer dereference.
>
> The 2 other ones, are just clean-ups to remove useless code and add other
> uses of devm_ function to simplify code.
>
> I've left the request_irq/free_irq because I'm unsure of potential side
> effects if some other resources are freed while an IRQ can still be
> triggered. So I've preferred to leave it as-is.
>
> Christophe JAILLET (4):
> usb: gadget: fotg210-udc: Remove a useless
> usb: gadget: fotg210-udc: Fix a memory leak
> usb: gadget: fotg210-udc: Simplify code
> usb: gadget: fotg210-udc: Fix a potential invalid pointer dereference
you should NEVER make fixes depend on cleanups. It should be the other
way around :-) First fixes, then cleanups. The reason is that fixes can
get accepted during -rc cycle, but cleanups must wait until the next
merge window.
Please fix up your patches, otherwise I'll have to apply the entire
series for v4.17
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup
[not found] ` <p5sksu$4pc$1@blaine.gmane.org>
@ 2018-02-17 10:50 ` Hans Ulli Kroll
0 siblings, 0 replies; 3+ messages in thread
From: Hans Ulli Kroll @ 2018-02-17 10:50 UTC (permalink / raw)
To: Christophe Jaillet; +Cc: linux-kernel, linux-usb, kernel-janitors
[-- Attachment #1: Type: TEXT/PLAIN, Size: 950 bytes --]
Hi Christophe
On Mon, 12 Feb 2018, Christophe Jaillet wrote:
> Le 12/02/2018 à 09:48, Felipe Balbi a écrit :
> >
[..]
> > way around :-) First fixes, then cleanups. The reason is that fixes can
> > get accepted during -rc cycle, but cleanups must wait until the next
> > merge window.
> >
> > Please fix up your patches, otherwise I'll have to apply the entire
> > series for v4.17
> >
>
> I agree with you. I will be more careful in the future.
> However, I will not re-send an updated version. Development on this driver
> does not seem to be very active.
... not quite right.
This driver and the fotg210-hcd is *currently* under my observation, I
want to add a phy/otg driber on top of these.
Feel free to CC me if you want to resend these patches.
With "not very active" makes me happy, so I don't break not much.
And if anyone ask, I have some devices to test, of cource ;-)
Greetings
Hans Ulli Kroll
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-17 10:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-12 21:41 [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup Christophe JAILLET
2018-02-12 8:48 ` Felipe Balbi
[not found] ` <p5sksu$4pc$1@blaine.gmane.org>
2018-02-17 10:50 ` Hans Ulli Kroll
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox