Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965265AbeALVmA (ORCPT + 1 other); Fri, 12 Jan 2018 16:42:00 -0500 Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:44934 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964844AbeALVl6 (ORCPT ); Fri, 12 Jan 2018 16:41:58 -0500 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 12 Jan 2018 22:41:55 +0100 X-ME-IP: 90.107.118.99 From: Christophe JAILLET To: balbi@kernel.org, gregkh@linuxfoundation.org, bhumirks@gmail.com, leoyang.li@nxp.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 0/4] usb: gadget: fotg210-udc: Fixes and cleanup Date: Fri, 12 Jan 2018 22:41:27 +0100 Message-Id: X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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