]> err.no Git - linux-2.6/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)
commit4be703906cffd5902028d20626e636ba21fb0b61
tree23c51cca66244b688c10c3330638064377972743
parent4f71c5de19c27f2198105d3b26b398494d5c353b
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