summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xpp_usb.c
diff options
context:
space:
mode:
authorWendell Thompson <wthompson@digium.com>2009-03-06 21:43:34 +0000
committerWendell Thompson <wthompson@digium.com>2009-03-06 21:43:34 +0000
commitaf35b946d5d6b1f33223aa2494cc7f44f649c112 (patch)
tree176f35dd9607aef96de81ddf6bfe6adc0047c50c /drivers/dahdi/xpp/xpp_usb.c
parent842e606515435731ce441233978b5589ba526c93 (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/xpp/xpp_usb.c')
-rw-r--r--drivers/dahdi/xpp/xpp_usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/xpp_usb.c b/drivers/dahdi/xpp/xpp_usb.c
index 2edec52..ff17e73 100644
--- a/drivers/dahdi/xpp/xpp_usb.c
+++ b/drivers/dahdi/xpp/xpp_usb.c
@@ -975,7 +975,11 @@ static int __init xpp_usb_init(void)
INFO("revision %s\n", XPP_VERSION);
xusb_cache = kmem_cache_create("xusb_cache",
sizeof(xframe_t) + XFRAME_DATASIZE,
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,22)
+ 0, SLAB_STORE_USER,
+#else
0, 0,
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
NULL,
#endif