diff options
author | Holger Waechtler <devnull@localhost> | 2003-03-21 15:09:54 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2003-03-21 15:09:54 +0000 |
commit | 8c45d92457f59a0fbf9cfdeb5f93c412ad524812 (patch) | |
tree | 78579bdfe1191e09637f39cea1229b3f48a27988 /linux/drivers/media/dvb/ttpci/av7110_ipack.c | |
parent | 5673904df7d5dd00df35988fd6fda922b4000398 (diff) | |
download | mediapointer-dvb-s2-8c45d92457f59a0fbf9cfdeb5f93c412ad524812.tar.gz mediapointer-dvb-s2-8c45d92457f59a0fbf9cfdeb5f93c412ad524812.tar.bz2 |
many more portability changes
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_ipack.c')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_ipack.c | 5 |
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 75f0ea8fb..c8a071fb3 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_ipack.c +++ b/linux/drivers/media/dvb/ttpci/av7110_ipack.c @@ -22,7 +22,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 = vmalloc(size*sizeof(u8))) ){ + if ( !(p->buf = kmalloc(size*sizeof(u8), GFP_KERNEL)) ){ printk ("Couldn't allocate memory for ipack\n"); } p->size = size; @@ -34,7 +34,8 @@ void av7110_ipack_init(ipack *p, int size, void av7110_ipack_free(ipack * p) { - if (p->buf) vfree(p->buf); + if (p->buf) + kfree(p->buf); } |