[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1384980697-4696-1-git-send-email-geyslan@gmail.com>
Date: Wed, 20 Nov 2013 17:51:23 -0300
From: "Geyslan G. Bem" <geyslan@...il.com>
To: linux-kernel@...r.kernel.org
Cc: kernel-br@...glegroups.com, "Geyslan G. Bem" <geyslan@...il.com>,
Mauro Carvalho Chehab <m.chehab@...sung.com>,
Hans Verkuil <hans.verkuil@...co.com>,
Peter Senna Tschudin <peter.senna@...il.com>,
Ezequiel Garcia <elezegarcia@...il.com>,
Johannes Erdfelt <johannes@...felt.com>,
linux-media@...r.kernel.org (open list:MEDIA INPUT INFRA...)
Subject: [PATCH] usb: cx231xx: Fix explicit freed pointer dereference
Put kfree after the 'clear_bit()' call.
Signed-off-by: Geyslan G. Bem <geyslan@...il.com>
---
drivers/media/usb/cx231xx/cx231xx-cards.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c
index e9d017b..528cce9 100644
--- a/drivers/media/usb/cx231xx/cx231xx-cards.c
+++ b/drivers/media/usb/cx231xx/cx231xx-cards.c
@@ -1412,8 +1412,8 @@ err_v4l2:
usb_set_intfdata(interface, NULL);
err_if:
usb_put_dev(udev);
- kfree(dev);
clear_bit(dev->devno, &cx231xx_devused);
+ kfree(dev);
return retval;
}
--
1.8.4.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists