diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/au1000/common/dbdma.c | 3 | ||||
-rw-r--r-- | arch/mips/kernel/irixelf.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/mips/au1000/common/dbdma.c b/arch/mips/au1000/common/dbdma.c index a5a6709637e0..d00e8247d6c2 100644 --- a/arch/mips/au1000/common/dbdma.c +++ b/arch/mips/au1000/common/dbdma.c | |||
@@ -290,8 +290,7 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid, | |||
290 | /* If kmalloc fails, it is caught below same | 290 | /* If kmalloc fails, it is caught below same |
291 | * as a channel not available. | 291 | * as a channel not available. |
292 | */ | 292 | */ |
293 | ctp = (chan_tab_t *) | 293 | ctp = kmalloc(sizeof(chan_tab_t), GFP_KERNEL); |
294 | kmalloc(sizeof(chan_tab_t), GFP_KERNEL); | ||
295 | chan_tab_ptr[i] = ctp; | 294 | chan_tab_ptr[i] = ctp; |
296 | break; | 295 | break; |
297 | } | 296 | } |
diff --git a/arch/mips/kernel/irixelf.c b/arch/mips/kernel/irixelf.c index 5aeacc1ffb24..99262fe64560 100644 --- a/arch/mips/kernel/irixelf.c +++ b/arch/mips/kernel/irixelf.c | |||
@@ -422,9 +422,7 @@ static inline int look_for_irix_interpreter(char **name, | |||
422 | if (*name != NULL) | 422 | if (*name != NULL) |
423 | goto out; | 423 | goto out; |
424 | 424 | ||
425 | *name = (char *) kmalloc((epp->p_filesz + | 425 | *name = kmalloc(epp->p_filesz + strlen(IRIX_EMUL), GFP_KERNEL); |
426 | strlen(IRIX_EMUL)), | ||
427 | GFP_KERNEL); | ||
428 | if (!*name) | 426 | if (!*name) |
429 | return -ENOMEM; | 427 | return -ENOMEM; |
430 | 428 | ||