diff options
author | Anton Vorontsov <[email protected]> | 2010-01-27 17:09:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2010-02-16 15:11:06 -0800 |
commit | 1a02d59aba9b61b820517fb135086471c065b573 (patch) | |
tree | 349a6c71a67036b415ae48aaf1a61331244afde7 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 1ebca9dad5abe8b2ed4dbd186cd657fb47c1f321 (diff) |
kfifo: Make kfifo_initialized work after kfifo_free
After kfifo rework it's no longer possible to reliably know if kfifo is
usable, since after kfifo_free(), kfifo_initialized() would still return
true. The correct behaviour is needed for at least FHCI USB driver.
This patch fixes the issue by resetting the kfifo to zero values (the
same approach is used in kfifo_alloc() if allocation failed).
Signed-off-by: Anton Vorontsov <[email protected]>
Acked-by: Stefani Seibold <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions