]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6656: [BUG] - Failed connection, incorrect endian.
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 29 Aug 2012 22:08:21 +0000 (23:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 20:54:23 +0000 (13:54 -0700)
commit22c4339e50c4e79f0fe6b9fb3a6af26c5f79d6c3
tree477da19a81b43da810a0cc70d0ac52fa136755d0
parent856b0bdb15f392ffb1b65cce3d3a0edf52191092
staging: vt6656: [BUG] - Failed connection, incorrect endian.

Hi,

This patch fixes a bug with driver failing to negotiate a connection.

The bug was traced to commit
9e37dfaa8ff9671ad847b675a3295be9fe4b47db
staging: vt6656: removed custom definitions of Ethernet packet types

In that patch, definitions in include/linux/if_ether.h replaced ones
in tether.h which had both big and little endian definitions.

include/linux/if_ether.h only refers to big endian values, cpu_to_be16
should be used for the correct endian architectures.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: stable <stable@vger.kernel.org> # 2.6.37+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/dpc.c
drivers/staging/vt6656/rxtx.c