linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup
@ 2018-01-12 21:41 Christophe JAILLET
  2018-01-12 21:44 ` [PATCH 1/4] usb: gadget: fotg210-udc: Remove a useless Christophe JAILLET
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ 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] 8+ messages in thread

end of thread, other threads:[~2018-02-17 10:53 UTC | newest]

Thread overview: 8+ 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-01-12 21:44 ` [PATCH 1/4] usb: gadget: fotg210-udc: Remove a useless Christophe JAILLET
2018-01-12 21:44 ` [PATCH 2/4] usb: gadget: fotg210-udc: Fix a memory leak Christophe JAILLET
2018-01-12 21:44 ` [PATCH 3/4] usb: gadget: fotg210-udc: Simplify code Christophe JAILLET
2018-01-12 21:44 ` [PATCH 4/4] usb: gadget: fotg210-udc: Fix a potential invalid pointer dereference Christophe JAILLET
2018-02-12  8:48 ` [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup Felipe Balbi
2018-02-12 18:05   ` Christophe Jaillet
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;
as well as URLs for NNTP newsgroup(s).