linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] fix i2c_msg.len not aligning with i2c_master_send
@ 2010-02-04  6:04 zhangfei gao
  2010-02-04  7:37 ` Ben Dooks
  2010-02-04  9:35 ` Jean Delvare
  0 siblings, 2 replies; 10+ messages in thread
From: zhangfei gao @ 2010-02-04  6:04 UTC (permalink / raw)
  To: linux-arm-kernel

Hi, Jean


We found type of i2c_msg.len is __u16, while parameter count in
i2c_master_send is int.
The mismatch will truncate count from int to u16.
For example we downloading firmware which is more than 64K (64K+8) via i2c,
i2c would transfer u16 (8 bytes) in fact.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-02-21 11:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-04  6:04 [PATCH 1/1] fix i2c_msg.len not aligning with i2c_master_send zhangfei gao
2010-02-04  7:37 ` Ben Dooks
2010-02-04  8:25   ` zhangfei gao
2010-02-04  9:35 ` Jean Delvare
2010-02-04 12:38   ` zhangfei gao
2010-02-04 12:47     ` Eric Miao
2010-02-04 13:14       ` Jean Delvare
2010-02-05  5:51         ` zhangfei gao
2010-02-05 11:12           ` Eric Miao
2010-02-21 11:20           ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).