Title: [9686] trunk/drivers/staging/iio/Documentation/iio_utils.h: merge from upstream: IIO: Documentation: iio_utils: Avoid double free()
- Revision
- 9686
- Author
- vapier
- Date
- 2011-03-01 16:18:41 -0500 (Tue, 01 Mar 2011)
Log Message
merge from upstream: IIO: Documentation: iio_utils: Avoid double free()
From: Michael Hennerich <[email protected]>
filename is used and freed later
Signed-off-by: Michael Hennerich <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Modified Paths
Diff
Modified: trunk/drivers/staging/iio/Documentation/iio_utils.h (9685 => 9686)
--- trunk/drivers/staging/iio/Documentation/iio_utils.h 2011-03-01 21:18:38 UTC (rev 9685)
+++ trunk/drivers/staging/iio/Documentation/iio_utils.h 2011-03-01 21:18:41 UTC (rev 9686)
@@ -319,7 +319,6 @@
}
fscanf(sysfsfp, "%u", ¤t->enabled);
fclose(sysfsfp);
- free(filename);
current->scale = 1.0;
current->offset = 0;
current->name = strndup(ent->d_name,
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits