From: Greg Ungerer Date: Mon, 12 Sep 2005 01:18:10 +0000 (+1000) Subject: [PATCH] uclinux: add NULL check, 0 end valid check and some more exports to nommu.c X-Git-Tag: v2.6.14-rc1~101 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66aa2b4b1cf9a61f1550251c56fc6f0d48287591;p=pandora-kernel.git [PATCH] uclinux: add NULL check, 0 end valid check and some more exports to nommu.c Move call to get_mm_counter() in update_mem_hiwater() to be inside the check for tsk->mm being null. Otherwise you can be following a null pointer here. This patch submitted by Javier Herrero . Modify the end check for munmap regions to allow for the legacy behavior of 0 being valid. Pretty much all current uClinux system libc malloc's pass in 0 as the end point. A hard check will fail on these, so change the check so that if it is non-zero it must be valid otherwise it fails. A passed in value will always succeed (as it used too). Also export a few more mm system functions - to be consistent with the VM code exports. Signed-off-by: Greg Ungerer Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed