diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /arch/arm/kernel/apm.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'arch/arm/kernel/apm.c')
| -rw-r--r-- | arch/arm/kernel/apm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/kernel/apm.c b/arch/arm/kernel/apm.c index 766b6c05c6db..2bed290fec76 100644 --- a/arch/arm/kernel/apm.c +++ b/arch/arm/kernel/apm.c | |||
| @@ -357,10 +357,8 @@ static int apm_open(struct inode * inode, struct file * filp) | |||
| 357 | { | 357 | { |
| 358 | struct apm_user *as; | 358 | struct apm_user *as; |
| 359 | 359 | ||
| 360 | as = (struct apm_user *)kmalloc(sizeof(*as), GFP_KERNEL); | 360 | as = (struct apm_user *)kzalloc(sizeof(*as), GFP_KERNEL); |
| 361 | if (as) { | 361 | if (as) { |
| 362 | memset(as, 0, sizeof(*as)); | ||
| 363 | |||
| 364 | /* | 362 | /* |
| 365 | * XXX - this is a tiny bit broken, when we consider BSD | 363 | * XXX - this is a tiny bit broken, when we consider BSD |
| 366 | * process accounting. If the device is opened by root, we | 364 | * process accounting. If the device is opened by root, we |
