diff options
author | Joe Perches <joe@perches.com> | 2010-11-04 20:07:26 -0700 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-01-18 19:30:21 +0100 |
commit | a1181caac965c660be2bd350a9deb763e6f4b738 (patch) | |
tree | bd6ff9ba19cfbc46faa80b96ae7a7b6300cfb8f5 | |
parent | 1b59be2a6cdcb5a12e18d8315c07c94a624de48f (diff) | |
download | kernel_samsung_aries-a1181caac965c660be2bd350a9deb763e6f4b738.zip kernel_samsung_aries-a1181caac965c660be2bd350a9deb763e6f4b738.tar.gz kernel_samsung_aries-a1181caac965c660be2bd350a9deb763e6f4b738.tar.bz2 |
MIPS: Sibyte: Use vzalloc in sbbus profiler
Signed-off-by: Joe Perches <joe@perches.com>
To: Jiri Kosina <trivial@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1756/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/sibyte/common/sb_tbprof.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/sibyte/common/sb_tbprof.c b/arch/mips/sibyte/common/sb_tbprof.c index 87ccdb4..48853ab 100644 --- a/arch/mips/sibyte/common/sb_tbprof.c +++ b/arch/mips/sibyte/common/sb_tbprof.c @@ -410,14 +410,13 @@ static int sbprof_tb_open(struct inode *inode, struct file *filp) return -EBUSY; memset(&sbp, 0, sizeof(struct sbprof_tb)); - sbp.sbprof_tbbuf = vmalloc(MAX_TBSAMPLE_BYTES); + sbp.sbprof_tbbuf = vzalloc(MAX_TBSAMPLE_BYTES); if (!sbp.sbprof_tbbuf) { sbp.open = SB_CLOSED; wmb(); return -ENOMEM; } - memset(sbp.sbprof_tbbuf, 0, MAX_TBSAMPLE_BYTES); init_waitqueue_head(&sbp.tb_sync); init_waitqueue_head(&sbp.tb_read); mutex_init(&sbp.lock); |