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

Bug#297086: kernel-source-2.6.10: drivers/block/pktcdvd.c : no device number specified



Hi Vincent,

Looking at the 2.6.10 and 2.6.16 kernel source, I see that pkt_major gets initialized in the pkt_init() function by the following sequence:

        ret = register_blkdev(pkt_major, "pktcdvd");
        if (ret < 0) {
                printk("pktcdvd: Unable to register block device\n");
                goto out2;
        }
        if (!pkt_major)
                pkt_major = ret;

So, pkt_major should have the correct value on exit. If it does not, you should see some error in dmesg or kernel logs from register_blkdev. Do you see anything like that?

Best regards,

Jurij Smakov                                        jurij@wooyd.org
Key: http://www.wooyd.org/pgpkey/                   KeyID: C99E03CC



Reply to: