diff options
author | Wendell Thompson <wthompson@digium.com> | 2009-03-06 21:43:34 +0000 |
---|---|---|
committer | Wendell Thompson <wthompson@digium.com> | 2009-03-06 21:43:34 +0000 |
commit | af35b946d5d6b1f33223aa2494cc7f44f649c112 (patch) | |
tree | 176f35dd9607aef96de81ddf6bfe6adc0047c50c /drivers/dahdi/voicebus.c | |
parent | 842e606515435731ce441233978b5589ba526c93 (diff) |
Workarounds for SLUB sysfs problems in kernel 2.6.22 with CONFIG_SLUB and CONFIG_SLUB_DEBUG, as in Fedora Core 6.
Fixes kernel oops when loading/unloading dahdi modules. DAHDI-226
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6096 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus.c')
-rw-r--r-- | drivers/dahdi/voicebus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dahdi/voicebus.c b/drivers/dahdi/voicebus.c index 85ba799..6e8187b 100644 --- a/drivers/dahdi/voicebus.c +++ b/drivers/dahdi/voicebus.c @@ -1385,7 +1385,11 @@ voicebus_init(struct pci_dev *pdev, u32 framesize, * this driver. */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) vb->buffer_cache = kmem_cache_create(board_name, vb->framesize, 0, +#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,22) + SLAB_HWCACHE_ALIGN | SLAB_STORE_USER, NULL, NULL); +#else SLAB_HWCACHE_ALIGN, NULL, NULL); +#endif #else vb->buffer_cache = kmem_cache_create(board_name, vb->framesize, 0, SLAB_HWCACHE_ALIGN, NULL); |