From: Mikulas Patocka Date: Thu, 19 Mar 2009 06:53:16 +0000 (-0700) Subject: sparc64: Fix crash with /proc/iomem X-Git-Tag: v2.6.29~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=192d7a4667c6d11d1a174ec4cad9a3c5d5f9043c;p=pandora-kernel.git sparc64: Fix crash with /proc/iomem When you compile kernel on Sparc64 with heap memory checking and type "cat /proc/iomem", you get a crash, because pointers in struct resource are uninitialized. Most code fills struct resource with zeros, so I assume that it is responsibility of the caller of request_resource to initialized it, not the responsibility of request_resource functuion. After 2.6.29 is out, there could be a check for uninitialized fields added to request_resource to avoid crashes like this. Signed-off-by: Mikulas Patocka Signed-off-by: David S. Miller --- Reading git-diff-tree failed