summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-03-24 14:37:09 +0000
committerHolger Waechtler <devnull@localhost>2003-03-24 14:37:09 +0000
commit9bcbeab2757219cf7c6c043cd5af9699d3222001 (patch)
tree94b9b3aaf2e15db355506fb463ec5e294a9652c6 /linux/drivers/media/dvb
parent2ceb4e1f06a0406ceabdf6bb5a50d8c2468b0fce (diff)
downloadmediapointer-dvb-s2-9bcbeab2757219cf7c6c043cd5af9699d3222001.tar.gz
mediapointer-dvb-s2-9bcbeab2757219cf7c6c043cd5af9699d3222001.tar.bz2
kmalloc->vmalloc
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_ipack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_ipack.c b/linux/drivers/media/dvb/ttpci/av7110_ipack.c
index c8a071fb3..2e1c40b56 100644
--- a/linux/drivers/media/dvb/ttpci/av7110_ipack.c
+++ b/linux/drivers/media/dvb/ttpci/av7110_ipack.c
@@ -1,6 +1,7 @@
#include "dvb_filter.h"
#include "av7110_ipack.h"
#include <linux/string.h> /* for memcpy() */
+#include <linux/vmalloc.h>
void av7110_ipack_reset(ipack *p)
@@ -22,7 +23,7 @@ void av7110_ipack_reset(ipack *p)
void av7110_ipack_init(ipack *p, int size,
void (*func)(u8 *buf, int size, void *priv))
{
- if ( !(p->buf = kmalloc(size*sizeof(u8), GFP_KERNEL)) ){
+ if ( !(p->buf = vmalloc(size*sizeof(u8))) ){
printk ("Couldn't allocate memory for ipack\n");
}
p->size = size;
@@ -35,7 +36,7 @@ void av7110_ipack_init(ipack *p, int size,
void av7110_ipack_free(ipack * p)
{
if (p->buf)
- kfree(p->buf);
+ vfree(p->buf);
}