Files
i2som-imx-linux/include/linux
Xi Wang b11597b704 introduce SIZE_MAX
commit a3860c1c5d upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2014-08-06 18:07:42 +01:00
..
2014-01-03 04:33:18 +00:00
2012-11-16 16:46:48 +00:00
2013-09-10 01:57:27 +01:00
2012-08-02 14:37:54 +01:00
2013-01-03 03:32:57 +00:00
2013-03-06 03:23:57 +00:00
2013-08-02 22:14:47 +02:00
2012-08-10 00:11:14 +01:00
2014-08-06 18:07:42 +01:00
2013-03-06 03:24:27 +00:00
2013-04-25 20:25:38 +01:00
2012-10-10 03:30:45 +01:00
2013-01-03 03:32:54 +00:00
2013-07-27 05:34:29 +01:00
2013-04-25 20:25:40 +01:00
2014-02-15 19:20:16 +00:00
2014-04-02 00:58:44 +01:00
2014-07-11 13:33:35 +01:00
2014-08-06 18:07:42 +01:00
2013-01-16 01:13:25 +00:00
2013-08-02 22:14:52 +02:00