From: Bjørn Mork <bj...@mork.no>
Date: Wed, 15 Nov 2017 09:35:02 +0100

> The GetNtbFormat and SetNtbFormat requests operate on 16 bit little
> endian values. We get away with ignoring this most of the time, because
> we only care about USB_CDC_NCM_NTB16_FORMAT which is 0x0000.  This
> fails for USB_CDC_NCM_NTB32_FORMAT.
> 
> Fix comparison between LE value from device and constant by converting
> the constant to LE.
> 
> Reported-by: Ben Hutchings <ben.hutchi...@codethink.co.uk>
> Fixes: 2b02c20ce0c2 ("cdc_ncm: Set NTB format again after altsetting switch 
> for Huawei devices")
> Cc: Enrico Mioso <mrkiko...@gmail.com>
> Cc: Christian Panton <christ...@panton.org>
> Signed-off-by: Bjørn Mork <bj...@mork.no>

Applied and queued up for -stable, thanks.

Reply via email to