diff options
author | Graf Yang <graf.yang@analog.com> | 2008-05-13 23:25:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-13 23:25:57 -0700 |
commit | 332223831e86b2e17b48b4afafad07d8e3b73861 (patch) | |
tree | a3bd42005c91888c3cb20ec0ca6880e3181e7acb /net/irda/irnet | |
parent | c1cc678adaa78ae2aab6a6d699241ad516d84476 (diff) | |
download | linux-332223831e86b2e17b48b4afafad07d8e3b73861.tar.gz linux-332223831e86b2e17b48b4afafad07d8e3b73861.tar.bz2 linux-332223831e86b2e17b48b4afafad07d8e3b73861.zip |
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>
Diffstat (limited to 'net/irda/irnet')
-rw-r--r-- | net/irda/irnet/irnet_irda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/irda/irnet/irnet_irda.c b/net/irda/irnet/irnet_irda.c index 75497e55927d..a3ec0026cdb2 100644 --- a/net/irda/irnet/irnet_irda.c +++ b/net/irda/irnet/irnet_irda.c @@ -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"); } |