On Fri, 2009-07-31 at 01:59 -0600, Patrick Simmons wrote: > I'm running zd1211rw on SPARC64 and was getting a lot of "unaligned > access" messages in dmesg. I tracked the problem down to this line, and > changing the cast to a memcpy fixes the issue. > > - fc = *(__le16 *)buffer; > + memcpy(&fc,buffer,sizeof(__le16)); > need_padding = ieee80211_is_data_qos(fc) ^ ieee80211_has_a4(fc); Please use get_unaligned instead. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part