Subject: Re: [PATCH 1/7] uio: add module owner to prevent inappropriate module unloading

From: Sebastian Andrzej Siewior <[email-masked]>
Date: Thu, 15 Aug 2013 18:54:46 +0200

On 08/15/2013 06:42 PM, Greg Kroah-Hartman wrote:
>> For this to happen you would need a refcount in uio-core which learns
>> that the device is gone and does not invoke any callbacks because the
>> device is gone. Something like you have in USB where you return 0 on
>> reads from ttyUSB after someone pulled the cable.
> 
> That happens because we invalidate the filehandle in the tty layer by
> tearing everything down in the usb serial driver.  And yes, uio also
> needs to do the same thing, if it doesn't already.

Ah. Do you have a handy pointer where / how you do this?

> thanks,
> greg k-h

Sebastian