From 50a707c65695f0fb2f3c8196e90ec3ee932f8693 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 21 Jun 2010 08:44:17 +0800 Subject: [PATCH] --- yaml --- r: 200681 b: refs/heads/master c: 0d152de56938361fa2b960db67657b20cdaa6d84 h: refs/heads/master i: 200679: 6179ca0aaadd7807d337359668d007f2091a0759 v: v3 --- [refs] | 2 +- trunk/drivers/usb/serial/qcserial.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 73aa4a35cdb6..86e4a702d545 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 10ca4425714a6115c5d865718d64874a1e1ea09a +refs/heads/master: 0d152de56938361fa2b960db67657b20cdaa6d84 diff --git a/trunk/drivers/usb/serial/qcserial.c b/trunk/drivers/usb/serial/qcserial.c index 04bb759536bb..93d72eb8cafc 100644 --- a/trunk/drivers/usb/serial/qcserial.c +++ b/trunk/drivers/usb/serial/qcserial.c @@ -139,6 +139,7 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id) "Could not set interface, error %d\n", retval); retval = -ENODEV; + kfree(data); } return retval; } @@ -155,6 +156,7 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id) "Could not set interface, error %d\n", retval); retval = -ENODEV; + kfree(data); } return retval; } @@ -163,6 +165,7 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id) default: dev_err(&serial->dev->dev, "unknown number of interfaces: %d\n", nintf); + kfree(data); return -ENODEV; }