diff options
author | Christian Riesch <christian.riesch@omicron.at> | 2014-08-21 15:17:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-22 12:33:48 -0700 |
commit | 13322f2e664333b40ea7c71df8785e6f4bba1e68 (patch) | |
tree | c5e1908dee1dbef590c83cd6a188a4927e1da80c /lib/string_helpers.c | |
parent | b4834c86e11bafc2bf7d3af6a6a5d9ea48b54b41 (diff) | |
download | op-kernel-dev-13322f2e664333b40ea7c71df8785e6f4bba1e68.zip op-kernel-dev-13322f2e664333b40ea7c71df8785e6f4bba1e68.tar.gz |
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 <christian.riesch@omicron.at>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions