]> git.baikalelectronics.ru Git - kernel.git/commit
Fix generic fb_ddc i2c edid probe msg
authorLinus Torvalds <torvalds@woody.osdl.org>
Fri, 17 Nov 2006 06:18:28 +0000 (22:18 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 17 Nov 2006 06:18:28 +0000 (22:18 -0800)
commite740d09178787d3bdb0a9c583c2ec50c63941f5a
tree23c51cca66244b688c10c3330638064377972743
parentf0a4aaf08130fb8913455d8d8b193a38606b4daa
Fix generic fb_ddc i2c edid probe msg

Benh points out that the msgs[0].flags entry never got initialized, and
since it's an automatic stack allocation, it could have any random
value, which is bad.

Rewrite the initializer to explicitly initialize all fields of the small
i2c_msg structure array we generate.  Just to keep it all obvious, let's
handle msgs[1].buf in the same initializer while we're at it, instead of
initializing that one separately later.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fb_ddc.c