]> git.baikalelectronics.ru Git - kernel.git/commit
net: irda: irda-usb: fix firmware name on big-endian hosts
authorJohan Hovold <johan@kernel.org>
Fri, 12 May 2017 10:11:13 +0000 (12:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 May 2017 16:15:46 +0000 (12:15 -0400)
commit1cfcdadeea84f1a309dfa7ddf0e4ce61abedef66
treedd5707b70737754d30a31ac762f8f0da3680be72
parentfe19b26d5ce0eac13bec4c365f5280d6980f22cf
net: irda: irda-usb: fix firmware name on big-endian hosts

Add missing endianness conversion when using the USB device-descriptor
bcdDevice field to construct a firmware file name.

Fixes: 48602d17984f ("[IRDA]: irda-usb.c: STIR421x cleanups")
Cc: stable <stable@vger.kernel.org> # 2.6.18
Cc: Nick Fedchik <nfedchik@atlantic-link.com.ua>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/irda-usb.c