aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2010-04-06 14:34:43 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-04-07 08:38:02 -0700
commit530cd330dc3865e3107304a6e84fdc332aa72f7d (patch)
tree414102f790dac9ad80af3c82935e5164b04a1b5e /drivers/video
parentmm: avoid null-pointer deref in sync_mm_rss() (diff)
downloadlinux-dev-530cd330dc3865e3107304a6e84fdc332aa72f7d.tar.xz
linux-dev-530cd330dc3865e3107304a6e84fdc332aa72f7d.zip
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 <david@hardeman.nu> Acked-by: Stefani Seibold <stefani@seibold.net> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions