Skip to content
Commit 4be70390 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4f71c5de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment