diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2009-03-19 07:53:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-19 07:53:16 +0100 |
commit | 192d7a4667c6d11d1a174ec4cad9a3c5d5f9043c (patch) | |
tree | 492fa7fbedffb167191aa4d6e218613667fb2864 /arch/x86 | |
parent | sparc64: Reschedule KGDB capture to a software interrupt. (diff) | |
download | linux-192d7a4667c6d11d1a174ec4cad9a3c5d5f9043c.tar.xz linux-192d7a4667c6d11d1a174ec4cad9a3c5d5f9043c.zip |
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 <mpatocka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions