zijun_hu
e47608ab6d
mm/memblock.c: fix NULL dereference error
...
It causes NULL dereference error and failure to get type_a->regions[0]
info if parameter type_b of __next_mem_range_rev() == NULL
Fix this by checking before dereferring and initializing idx_b to 0
The approach is tested by dumping all types of region via
__memblock_dump_all() and __next_mem_range_rev() fixed to UART
separately the result is okay after checking the logs.
Link: http://lkml.kernel.org/r/57A0320D.6070102@zoho.com
Signed-off-by: zijun_hu <zijun_hu@htc.com>
Tested-by: zijun_hu <zijun_hu@htc.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-08-04 20:02:09 -04:00
..
2016-08-02 17:31:41 -04:00
2016-07-28 16:07:41 -07:00
2016-07-26 16:19:19 -07:00
2016-03-17 15:09:34 -07:00
2016-01-27 09:09:57 -05:00
2016-05-27 14:49:37 -07:00
2016-07-28 16:07:41 -07:00
2016-03-17 15:09:34 -07:00
2016-03-17 15:09:34 -07:00
2016-03-17 15:09:34 -07:00
2015-11-05 19:34:48 -08:00
2016-06-09 14:23:11 -07:00
2016-03-15 16:55:16 -07:00
2016-07-29 12:29:15 -07:00
2016-02-16 10:11:12 +01:00
2016-07-26 16:19:19 -07:00
2016-08-02 16:11:27 -04:00
2016-05-19 19:12:14 -07:00
2016-07-28 16:07:41 -07:00
2016-05-20 17:58:30 -07:00
2016-08-02 17:31:41 -04:00
2016-07-28 16:07:41 -07:00
2016-08-04 20:02:09 -04:00
2016-03-17 15:09:34 -07:00
2016-07-28 16:07:41 -07:00
2016-03-17 15:09:34 -07:00
2016-03-17 15:09:34 -07:00
2016-07-28 16:07:41 -07:00
2016-07-26 16:19:19 -07:00
2016-01-20 17:09:18 -08:00
2016-05-22 17:21:27 -07:00
2016-05-23 17:04:14 -07:00
2016-07-26 16:19:19 -07:00
2016-08-04 20:02:09 -04:00
2016-08-02 17:31:41 -04:00
2016-07-28 16:07:41 -07:00
2016-07-28 16:07:41 -07:00
2016-08-02 17:31:41 -04:00
2016-07-28 16:07:41 -07:00
2016-07-28 16:07:41 -07:00
2016-07-28 16:07:41 -07:00
2016-04-04 10:41:08 -07:00
2016-07-28 16:07:41 -07:00
2016-03-17 15:09:34 -07:00
2016-08-02 19:35:15 -04:00
2016-04-28 11:44:19 +02:00
2016-03-17 15:09:34 -07:00
2016-05-19 19:12:14 -07:00
2016-07-26 16:19:19 -07:00
2016-07-26 16:19:19 -07:00
2015-11-05 19:34:48 -08:00
2016-03-17 15:09:34 -07:00
2016-07-26 16:19:19 -07:00
2016-07-28 16:07:41 -07:00
2016-08-04 20:02:09 -04:00
2015-11-05 19:34:48 -08:00
2016-05-27 14:49:37 -07:00
2016-07-28 16:07:41 -07:00
2016-07-28 16:07:41 -07:00
2016-07-26 16:19:19 -07:00
2016-07-26 16:19:19 -07:00
2016-06-03 15:06:22 -07:00
2016-07-28 16:07:41 -07:00
2016-01-15 17:56:32 -08:00
2016-03-17 15:09:34 -07:00
2016-05-25 11:48:25 -04:00
2016-03-17 15:09:34 -07:00
2016-02-16 10:04:09 +01:00
2016-03-17 15:09:34 -07:00
2016-07-26 16:19:19 -07:00
2016-07-28 16:07:41 -07:00
2016-08-03 18:20:12 -04:00
2016-07-26 16:19:19 -07:00
2016-08-02 17:31:41 -04:00
2016-07-28 16:07:41 -07:00
2016-02-18 16:23:24 -08:00
2016-08-04 20:02:09 -04:00
2016-08-02 17:31:41 -04:00
2016-08-02 17:31:41 -04:00
2016-03-17 15:09:34 -07:00
2016-07-28 16:07:41 -07:00
2016-07-28 16:07:41 -07:00
2016-07-26 16:19:19 -07:00
2016-07-26 16:19:19 -07:00
2016-04-04 10:41:08 -07:00
2016-07-28 16:07:41 -07:00
2015-11-05 19:34:48 -08:00
2016-07-26 16:19:19 -07:00
2016-02-03 08:28:43 -08:00
2016-08-02 17:31:41 -04:00
2016-07-28 16:07:41 -07:00
2016-07-28 16:07:41 -07:00
2016-06-03 16:02:55 -07:00
2016-01-15 11:40:52 -08:00
2015-11-06 17:50:42 -08:00
2016-07-28 16:07:41 -07:00
2016-05-20 17:58:30 -07:00