mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-18 16:40:29 +00:00
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>
This commit is contained in:
parent
a4ba41863b
commit
457de5a154
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user