diff options
Diffstat (limited to 'arch/sparc64/kernel/ebus.c')
-rw-r--r-- | arch/sparc64/kernel/ebus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/ebus.c b/arch/sparc64/kernel/ebus.c index 7991e919d8ab..c69504aa638f 100644 --- a/arch/sparc64/kernel/ebus.c +++ b/arch/sparc64/kernel/ebus.c | |||
@@ -277,10 +277,9 @@ static inline void *ebus_alloc(size_t size) | |||
277 | { | 277 | { |
278 | void *mem; | 278 | void *mem; |
279 | 279 | ||
280 | mem = kmalloc(size, GFP_ATOMIC); | 280 | mem = kzalloc(size, GFP_ATOMIC); |
281 | if (!mem) | 281 | if (!mem) |
282 | panic("ebus_alloc: out of memory"); | 282 | panic("ebus_alloc: out of memory"); |
283 | memset((char *)mem, 0, size); | ||
284 | return mem; | 283 | return mem; |
285 | } | 284 | } |
286 | 285 | ||