aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/irnet
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2008-05-14 02:25:57 -0400
committerDavid S. Miller <davem@davemloft.net>2008-05-14 02:25:57 -0400
commit332223831e86b2e17b48b4afafad07d8e3b73861 (patch)
treea3bd42005c91888c3cb20ec0ca6880e3181e7acb /net/irda/irnet
parentc1cc678adaa78ae2aab6a6d699241ad516d84476 (diff)
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.c4
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,
1673 /* Notify the control channel */ 1673 /* Notify the control channel */
1674 irnet_post_event(NULL, IRNET_DISCOVER, 1674 irnet_post_event(NULL, IRNET_DISCOVER,
1675 discovery->saddr, discovery->daddr, discovery->info, 1675 discovery->saddr, discovery->daddr, discovery->info,
1676 u16ho(discovery->hints)); 1676 get_unaligned((__u16 *)discovery->hints));
1677 1677
1678 DEXIT(IRDA_OCB_TRACE, "\n"); 1678 DEXIT(IRDA_OCB_TRACE, "\n");
1679} 1679}
@@ -1704,7 +1704,7 @@ irnet_expiry_indication(discinfo_t * expiry,
1704 /* Notify the control channel */ 1704 /* Notify the control channel */
1705 irnet_post_event(NULL, IRNET_EXPIRE, 1705 irnet_post_event(NULL, IRNET_EXPIRE,
1706 expiry->saddr, expiry->daddr, expiry->info, 1706 expiry->saddr, expiry->daddr, expiry->info,
1707 u16ho(expiry->hints)); 1707 get_unaligned((__u16 *)expiry->hints));
1708 1708
1709 DEXIT(IRDA_OCB_TRACE, "\n"); 1709 DEXIT(IRDA_OCB_TRACE, "\n");
1710} 1710}