From: Christian Riesch Date: Thu, 21 Aug 2014 13:17:04 +0000 (+0200) Subject: dp83640: Fix length check for event timestamp status messages X-Git-Tag: fixes-against-v3.18-rc2~81^2~249 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13322f2e664333b40ea7c71df8785e6f4bba1e68;p=pandora-kernel.git dp83640: Fix length check for event timestamp status messages Event timestamp status messages have a variable length, ranging from 1 to 5 words (16 bit words). The current code however requires a minimum message length of sizeof(*phy_txts). In most cases this condition is fulfilled due to padding bytes. However, if several events are signaled in a single message, padding bytes may not be present. For short event timestamp status messages, the length check will fail, and the event timestamp will be dropped. Signed-off-by: Christian Riesch Cc: Richard Cochran Signed-off-by: David S. Miller --- Reading git-diff-tree failed