]> err.no Git - linux-2.6/commit
mm/sparse.c: check the return value of sparse_index_alloc()
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 18 Dec 2007 00:19:58 +0000 (16:19 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 18 Dec 2007 03:28:16 +0000 (19:28 -0800)
commitaf0cd5a7c3cded50c25e98acd94912d17a0eb914
treefcdf2cef80bb8846a8171333e78425abf0c3a326
parentbd6cba53c524dccf72900435d29722b22f61d835
mm/sparse.c: check the return value of sparse_index_alloc()

Since sparse_index_alloc() can return NULL on memory allocation failure,
we must deal with the failure condition when calling it.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/sparse.c