Paul Mackerras
69ea640598
lib: Fix generic strnlen_user for 32-bit big-endian machines
...
The aligned_byte_mask() definition is wrong for 32-bit big-endian
machines: the "7-(n)" part of the definition assumes a long is 8
bytes. This fixes it by using BITS_PER_LONG - 8 instead of 8*7.
Tested on 32-bit and 64-bit PowerPC.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-27 20:59:46 -07:00
..
2012-04-18 12:14:28 +10:00
2012-05-22 13:54:24 +10:00
2012-03-07 15:04:04 -05:00
2012-02-29 17:15:08 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-01-10 16:30:49 -08:00
2012-01-26 21:28:45 +01:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-02-02 10:34:23 +11:00
2012-03-07 15:04:04 -05:00
2011-10-29 21:20:22 +02:00
2012-03-07 15:04:04 -05:00
2012-03-28 17:14:35 -07:00
2012-03-23 16:58:38 -07:00
2012-03-23 16:58:38 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-04-18 13:38:48 +02:00
2012-03-07 15:04:04 -05:00
2011-12-06 10:00:05 +01:00
2011-12-06 09:53:40 +01:00
2012-01-12 20:13:13 -08:00
2012-03-07 15:04:04 -05:00
2012-02-02 00:24:04 +11:00
2012-03-07 15:04:04 -05:00
2012-01-24 16:00:35 -08:00
2012-03-07 15:04:04 -05:00
2012-05-07 16:47:32 -07:00
2012-03-11 19:59:43 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-23 16:58:38 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-05-02 00:04:06 -07:00
2012-03-07 15:04:04 -05:00
2012-05-26 16:57:16 -07:00
2012-05-23 10:09:50 -07:00
2012-04-19 19:17:30 -07:00
2012-03-24 10:24:31 -07:00
2012-05-07 16:51:19 -07:00
2012-03-07 15:04:04 -05:00
2011-10-31 17:30:56 -07:00
2012-03-07 15:04:04 -05:00
2012-04-24 20:54:49 -07:00
2012-03-28 15:58:21 -07:00
2012-03-07 15:04:04 -05:00
2012-05-26 16:57:16 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-01-31 23:19:47 +02:00
2011-10-31 17:30:56 -07:00
2012-02-29 17:15:08 -05:00
2012-03-23 16:58:36 -07:00
2012-03-28 17:14:37 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-05-17 15:18:37 +02:00
2012-03-07 15:04:04 -05:00
2011-12-08 19:52:43 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-03-07 15:04:04 -05:00
2012-04-20 23:27:08 +02:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-05-26 11:33:40 -07:00
2012-05-27 20:59:46 -07:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00
2012-03-07 15:04:04 -05:00
2012-03-24 10:24:31 -07:00