[SCTP]: Fix sctp_assoc_seq_show() panics on big-endian systems.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 17 Jan 2006 19:54:06 +0000 (11:54 -0800)
committerSridhar Samudrala <sri@us.ibm.com>
Tue, 17 Jan 2006 19:54:06 +0000 (11:54 -0800)
commit38b0e42aba928d9929a26ec23b850c36a31fca5f
tree934a3678968b7f5f19bf6543f527c0cef39b25c8
parent49392e5ecf608da6770fd8723b534a0fc851edc4
[SCTP]: Fix sctp_assoc_seq_show() panics on big-endian systems.

This patch corrects the panic by casting the argument to the
pointer of correct size.  On big-endian systems we ended up loading
only 32 bits of data because we are treating the pointer as an int*.
By treating this pointer as loff_t*, we'll load the full 64 bits
and then let regular integer demotion take place which will give us
the correct value.

Signed-off-by: Vlad Yaseivch <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
net/sctp/proc.c