From: Vlad Yasevich Date: Tue, 17 Jan 2006 19:54:06 +0000 (-0800) Subject: [SCTP]: Fix sctp_assoc_seq_show() panics on big-endian systems. X-Git-Tag: v2.6.16-rc2~256^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38b0e42aba928d9929a26ec23b850c36a31fca5f;p=pandora-kernel.git [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 Signed-off-by: Sridhar Samudrala --- Reading git-diff-tree failed