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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux