Files
i2som-imx-linux/include/linux
Xi Wang a3860c1c5d introduce SIZE_MAX
ULONG_MAX is often used to check for integer overflow when calculating
allocation size.  While ULONG_MAX happens to work on most systems, there
is no guarantee that `size_t' must be the same size as `long'.

This patch introduces SIZE_MAX, the maximum value of `size_t', to improve
portability and readability for allocation size validation.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Acked-by: Alex Elder <elder@dreamhost.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-31 17:49:26 -07:00
..
2012-05-25 12:46:23 +05:30
2012-05-29 16:22:23 -07:00
2012-05-22 11:32:31 +02:00
2012-05-21 21:09:38 +02:00
2012-05-29 16:22:21 -07:00
2012-05-31 17:49:26 -07:00
2012-05-22 15:20:28 -04:00
2012-05-29 16:22:19 -07:00
2012-05-29 16:22:24 -07:00
2012-05-26 14:17:30 -04:00
2012-05-21 23:52:30 -04:00
2012-05-31 17:49:26 -07:00
2012-05-29 16:22:28 -07:00
2012-05-21 16:16:58 -07:00
2012-05-22 12:16:16 +09:30