summaryrefslogtreecommitdiffstats
path: root/sound/soc/generic
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@hundeboll.net>2013-03-14 21:30:21 +0100
committerAntonio Quartulli <ordex@autistici.org>2013-03-27 10:27:31 +0100
commite6a0b495ffee1301c239da49818008e7de3c2ae1 (patch)
treec68ffc41df3776d6b767c8d927a0d6d85868a6ee /sound/soc/generic
parent6bdeaba47d87f48a3943b6899d6c6e6f17d52f1d (diff)
downloadop-kernel-dev-e6a0b495ffee1301c239da49818008e7de3c2ae1.zip
op-kernel-dev-e6a0b495ffee1301c239da49818008e7de3c2ae1.tar.gz
batman-adv: Fix endianness errors for network coding
Add a htonl() in network_coding.c when reading the sequence number from received ogm_packet, to avoid wrong byte ordering when comparing with a host value. This bug was introduced in 3ed7ada3f0bbcd058567bc0a8f9729a73eba7db6 ("batman-adv: network coding - detect coding nodes and remove these after timeout"). Change the type of coded_packet->coded_len from uint16 to __be16 to avoid wrong assumptions about endianness in later uses. Introduced in c3289f3650d34b60296000a629c99f2488f7c3dd ("batman-adv: network coding - code and transmit packets if possible"). Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Martin Hundebøll <martin@hundeboll.net> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'sound/soc/generic')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud