diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2019-03-06 17:53:27 +0100 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-03-06 22:02:56 +0100 |
commit | 457de5a15412bae6d7a590e7316a3996de318b37 (patch) | |
tree | bcd571ea1900d409f717d720114cf8412151b24a /target/linux/generic/files/drivers/misc | |
parent | a4ba41863b40fb11779a132e63d671d05649acda (diff) | |
download | upstream-457de5a15412bae6d7a590e7316a3996de318b37.tar.gz upstream-457de5a15412bae6d7a590e7316a3996de318b37.tar.bz2 upstream-457de5a15412bae6d7a590e7316a3996de318b37.zip |
owl-loader: fix crash caused by endian patch
This patch fixes a crash that occured on the
BT Home Hub v5a (lantiq/xrx200) which resulted
in the device bootlooping.
Reported-by: Ryan Mounce <ryan@mounce.com.au>
Tested-by: Vitalij Alshevsky <v_alshevsky@tut.by>
Fixes: ddece08bf456 ("kernel: owl-loader: fix sparse endian warnings")
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/generic/files/drivers/misc')
-rw-r--r-- | target/linux/generic/files/drivers/misc/owl-loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/misc/owl-loader.c b/target/linux/generic/files/drivers/misc/owl-loader.c index 5cbee79740..a4e55ad7b1 100644 --- a/target/linux/generic/files/drivers/misc/owl-loader.c +++ b/target/linux/generic/files/drivers/misc/owl-loader.c @@ -75,7 +75,7 @@ static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data, /* set pointer to first reg address */ for (data = (const void *) (cal_data + 3); - (const void *) data <= cal_end && data->reg != ~0; + (const void *) data <= cal_end && data->reg != (u16)~0; data++) { u32 val; u16 reg; |