Mike Marshall dc0336214e orangefs: clean up debugfs
We recently refactored the Orangefs debugfs code.
The refactor seemed to trigger dan.carpenter@oracle.com's
static tester to find a possible double-free in the code.

While designing the fix we saw a condition under which the
buffer being freed could also be overflowed.

We also realized how to rebuild the related debugfs file's
"contents" (a string) without deleting and re-creating the file.

This fix should eliminate the possible double-free, the
potential overflow and improve code readability.

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
2016-11-07 10:41:55 -05:00
..
2016-10-24 14:50:07 -04:00
2016-08-07 23:38:47 -04:00
2016-08-12 15:12:54 -04:00
2015-10-03 11:40:00 -04:00
2016-10-24 14:50:07 -04:00
2016-08-12 15:12:54 -04:00
2016-11-07 10:41:55 -05:00
2016-08-12 15:12:54 -04:00
2016-10-24 14:50:07 -04:00
2016-11-07 10:41:55 -05:00
2016-08-15 11:38:36 -04:00
2016-08-12 15:12:54 -04:00