Re: [PATCH] USB and Driver Core patches for 2.6.10

From: Greg KH
Date: Sat Jan 08 2005 - 04:05:07 EST


ChangeSet 1.1938.439.50, 2005/01/06 17:28:51-08:00, jlamanna@xxxxxxxxx

[PATCH] USB: ov511.c - vfree() checking cleanups

ov511.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


drivers/usb/media/ov511.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)


diff -Nru a/drivers/usb/media/ov511.c b/drivers/usb/media/ov511.c
--- a/drivers/usb/media/ov511.c 2005-01-07 15:37:39 -08:00
+++ b/drivers/usb/media/ov511.c 2005-01-07 15:37:39 -08:00
@@ -3908,15 +3908,11 @@
ov->fbuf = NULL;
}

- if (ov->rawfbuf) {
- vfree(ov->rawfbuf);
- ov->rawfbuf = NULL;
- }
+ vfree(ov->rawfbuf);
+ ov->rawfbuf = NULL;

- if (ov->tempfbuf) {
- vfree(ov->tempfbuf);
- ov->tempfbuf = NULL;
- }
+ vfree(ov->tempfbuf);
+ ov->tempfbuf = NULL;

for (i = 0; i < OV511_NUMSBUF; i++) {
if (ov->sbuf[i].data) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/