irda: Fix a misalign access issue. (v2)
Replace u16ho with put/get_unaligned functions Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

gecommit door
David S. Miller

bovenliggende
c1cc678ada
commit
332223831e
@@ -1673,7 +1673,7 @@ irnet_discovery_indication(discinfo_t * discovery,
|
||||
/* Notify the control channel */
|
||||
irnet_post_event(NULL, IRNET_DISCOVER,
|
||||
discovery->saddr, discovery->daddr, discovery->info,
|
||||
u16ho(discovery->hints));
|
||||
get_unaligned((__u16 *)discovery->hints));
|
||||
|
||||
DEXIT(IRDA_OCB_TRACE, "\n");
|
||||
}
|
||||
@@ -1704,7 +1704,7 @@ irnet_expiry_indication(discinfo_t * expiry,
|
||||
/* Notify the control channel */
|
||||
irnet_post_event(NULL, IRNET_EXPIRE,
|
||||
expiry->saddr, expiry->daddr, expiry->info,
|
||||
u16ho(expiry->hints));
|
||||
get_unaligned((__u16 *)expiry->hints));
|
||||
|
||||
DEXIT(IRDA_OCB_TRACE, "\n");
|
||||
}
|
||||
|
Verwijs in nieuw issue
Block a user