sierra_net: Endianess bug fix.
I discovered I couldn't get sierra_net to work on a powerpc. Turns out the firmware attribute check assumes the system is little endian and hence fails because the attributes is a 16 bit value. Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6862234238
commit
2120c52da6
1 changed files with 1 additions and 1 deletions
|
@ -656,7 +656,7 @@ static int sierra_net_get_fw_attr(struct usbnet *dev, u16 *datap)
|
|||
return -EIO;
|
||||
}
|
||||
|
||||
*datap = *attrdata;
|
||||
*datap = le16_to_cpu(*attrdata);
|
||||
|
||||
kfree(attrdata);
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue