Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751902AbcLEQUn convert rfc822-to-8bit (ORCPT ); Mon, 5 Dec 2016 11:20:43 -0500 Received: from smtpout.microchip.com ([198.175.253.82]:33478 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751437AbcLEQUi (ORCPT ); Mon, 5 Dec 2016 11:20:38 -0500 From: To: , , , CC: Subject: RE: [PATCH 1/1] net: usb: set error code when usb_alloc_urb fails Thread-Topic: [PATCH 1/1] net: usb: set error code when usb_alloc_urb fails Thread-Index: AQHSTVffCKBrfc5IHk+9UqJ1xZv15aD5i91g Date: Mon, 5 Dec 2016 16:20:27 +0000 Message-ID: <9235D6609DB808459E95D78E17F2E43D40976FA4@CHN-SV-EXMX02.mchp-main.com> References: <1480764288-5448-1-git-send-email-bianpan2016@163.com> In-Reply-To: <1480764288-5448-1-git-send-email-bianpan2016@163.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.76.4] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 601 Lines: 21 > Signed-off-by: Pan Bian > --- > drivers/net/usb/lan78xx.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c > index db558b8..f33460c 100644 > --- a/drivers/net/usb/lan78xx.c > +++ b/drivers/net/usb/lan78xx.c > @@ -3395,6 +3395,7 @@ static int lan78xx_probe(struct usb_interface *intf, > if (buf) { > dev->urb_intr = usb_alloc_urb(0, GFP_KERNEL); > if (!dev->urb_intr) { > + ret = -ENOMEM; > kfree(buf); > goto out3; > } else { > -- > 1.9.1 > Acked-by: Woojung Huh