Re: [PATCH 2.6.17-rc3] Fix capi reload by unregistering the correct major

From: Stefan Schweizer
Date: Fri May 12 2006 - 18:16:22 EST


Hi,

after seeing your problems with my patch on -mm-commits, I actually think
this one might be better. It allows dynamic majors and does not break
anything :)
Please change my patch
- Stefan

--- drivers/isdn/capi/capi.c 2006-05-13 00:12:46.000000000 +0200
+++ drivers/isdn/capi/capi.c 2006-05-12 22:16:22.000000000 +0200
@@ -1499,7 +1499,9 @@
printk(KERN_ERR "capi20: unable to get major %d\n",
capi_major);
return major_ret;
}
- capi_major = major_ret;
+ if (major_ret != 0) {
+ capi_major = major_ret;
+ }
capi_class = class_create(THIS_MODULE, "capi");
if (IS_ERR(capi_class)) {
unregister_chrdev(capi_major, "capi20");


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/