All of lore.kernel.org
 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
       [not found] ` <309424b61002032204y37307236q94ab3a502b0526e0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 2 replies; 18+ 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] 18+ messages in thread

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

Thread overview: 18+ 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
     [not found]   ` <20100204073759.GC13267-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2010-02-04  8:25     ` zhangfei gao
2010-02-04  8:25       ` zhangfei gao
     [not found] ` <309424b61002032204y37307236q94ab3a502b0526e0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-04  9:35   ` Jean Delvare
2010-02-04  9:35     ` Jean Delvare
2010-02-04 12:38     ` zhangfei gao
2010-02-04 12:38       ` zhangfei gao
2010-02-04 12:47       ` Eric Miao
2010-02-04 12:47         ` Eric Miao
     [not found]         ` <f17812d71002040447y4b6f889o1137ae6149559994-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-04 13:14           ` Jean Delvare
2010-02-04 13:14             ` Jean Delvare
     [not found]             ` <20100204141451.3e0f865e-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2010-02-05  5:51               ` zhangfei gao
2010-02-05  5:51                 ` zhangfei gao
     [not found]                 ` <309424b61002042151i2a762d41md3521a820fd45622-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-05 11:12                   ` Eric Miao
2010-02-05 11:12                     ` Eric Miao
2010-02-21 11:20                 ` Jean Delvare
2010-02-21 11:20                   ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.