+ fix-capi-reload-by-unregistering-the-correct-major.patch added to -mm tree

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

 



The patch titled

     Fix capi reload by unregistering the correct major

has been added to the -mm tree.  Its filename is

     fix-capi-reload-by-unregistering-the-correct-major.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Stefan Schweizer <genstef@xxxxxxxxxx>

I am having the bug FATAL: Error inserting capi ([..]/capi.ko): Device or
resource busy when I try to reload capi after loading it.  in dmesg:
capi20: unable to get major 68

Fix the issue which is caused by setting the major to zero when registering
the chrdev succeeded.

(akpm: this means that we can again not use `major=0' (dynamic major
allocation) for this driver).

Cc: Karsten Keil <kkeil@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/isdn/capi/capi.c |    1 -
 1 files changed, 1 deletion(-)

diff -puN drivers/isdn/capi/capi.c~fix-capi-reload-by-unregistering-the-correct-major drivers/isdn/capi/capi.c
--- 25/drivers/isdn/capi/capi.c~fix-capi-reload-by-unregistering-the-correct-major	Mon May  8 12:52:30 2006
+++ 25-akpm/drivers/isdn/capi/capi.c	Mon May  8 12:52:30 2006
@@ -1499,7 +1499,6 @@ static int __init capi_init(void)
 		printk(KERN_ERR "capi20: unable to get major %d\n", capi_major);
 		return major_ret;
 	}
-	capi_major = major_ret;
 	capi_class = class_create(THIS_MODULE, "capi");
 	if (IS_ERR(capi_class)) {
 		unregister_chrdev(capi_major, "capi20");
_

Patches currently in -mm which might be from genstef@xxxxxxxxxx are

fix-capi-reload-by-unregistering-the-correct-major.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux