diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2007-12-17 16:19:58 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-17 19:28:16 -0800 |
commit | af0cd5a7c3cded50c25e98acd94912d17a0eb914 (patch) | |
tree | fcdf2cef80bb8846a8171333e78425abf0c3a326 /mm/swap.c | |
parent | bd6cba53c524dccf72900435d29722b22f61d835 (diff) | |
download | op-kernel-dev-af0cd5a7c3cded50c25e98acd94912d17a0eb914.zip op-kernel-dev-af0cd5a7c3cded50c25e98acd94912d17a0eb914.tar.gz |
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>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions