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-15 12:09:13 -07:00
2016-10-07 15:15:33 -07:00
2016-05-20 17:58:30 -07:00
2016-10-13 21:28:20 -07:00
2016-11-07 10:41:55 -05:00
2016-10-11 10:49:44 -07:00
2016-10-13 20:28:22 -07:00
2016-09-27 21:20:53 -04:00
2016-06-07 22:07:09 -04:00
2016-09-27 18:47:38 -04:00
2016-06-21 09:23:11 +10:00
2016-10-13 20:28:22 -07:00
2016-07-26 16:19:19 -07:00