mac802154: tx: use put_unaligned_le16 for copy crc
authorAlexander Aring <alex.aring@gmail.com>
Mon, 27 Oct 2014 16:13:28 +0000 (17:13 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 27 Oct 2014 17:07:36 +0000 (18:07 +0100)
commit061ef8f915988839b12460c47ebfcf3700e124f0
treed0be975ce42d506ead60ad00e6b8a60bf2dcad64
parent01141234f237957ec962dda2f1ca89d9ef180884
mac802154: tx: use put_unaligned_le16 for copy crc

This patch replaces the memcpy with a put_unaligned_le16. The placement
of crc inside of PSDU can also be unaligned. With memcpy this can fail
on some architectures.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reported-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/tx.c