diff options
| author | David Härdeman <[email protected]> | 2010-04-06 14:34:43 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-04-07 08:38:02 -0700 |
| commit | 530cd330dc3865e3107304a6e84fdc332aa72f7d (patch) | |
| tree | 414102f790dac9ad80af3c82935e5164b04a1b5e /tools/perf/scripts/python | |
| parent | a3a2e76c77fa22b114e421ac11dec0c56c3503fb (diff) | |
include/linux/kfifo.h: fix INIT_KFIFO()
DECLARE_KFIFO creates a union with a struct kfifo and a buffer array with
size [size + sizeof(struct kfifo)].
INIT_KFIFO then sets the buffer pointer in struct kfifo to point to the
beginning of the buffer array which means that the first call to kfifo_in
will overwrite members of the struct kfifo.
Signed-off-by: David Härdeman <[email protected]>
Acked-by: Stefani Seibold <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions