[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b49af93b0805210601n38030150w643565b60edc85da@mail.gmail.com>
Date: Wed, 21 May 2008 18:31:21 +0530
From: "vijay anand" <vijayanand.sj@...il.com>
To: linux-kernel@...r.kernel.org, dave@....cz
Subject: [BUG] cdc-acm driver module
Hi All,
This is vijay and new to this group. Normally I use to go through the
Linux kernel source and try to understand how things work.
Last week I was going through the cdc-acm driver source(linux-2.6.25).
I think there is a bug with that driver and I am not sure about it. So
I decided to post you guys and get your views on that.
The interface is claimed in 'acm_probe' using 'usb_driver_claim_interface' and
it has been released in 'acm_disconnect' using 'usb_driver_release_interface'.
This works fine as long as the control reaches 'acm_disconnect'.
What happens when the control never reaches the 'acm_disconnect'. Like simply
loading the driver and unloading the driver when the device is still in use.
In this case I hope the 'usb_driver_release_interface' never gets called.
Is it a bug? Do we have to do a 'usb_driver_release_interface' in 'acm_exit'.
Please clarify.
Thanks,
VJ
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists