Re: [PATCH 1/2] uio: be aware of open(), mmap(), close()

2012-12-06 Thread Hans J. Koch
On Thu, Dec 06, 2012 at 01:44:56PM +0100, Benedikt Spranger wrote: > After open(), mmap(), close() the mmaped pointer is valid. Removing the > underlaying module causes a Oops or other strange effects. Keep all structures > valid till the last user is gone. > > Signed-off-by: Benedikt Spranger >

[PATCH 1/2] uio: be aware of open(), mmap(), close()

2012-12-06 Thread Benedikt Spranger
After open(), mmap(), close() the mmaped pointer is valid. Removing the underlaying module causes a Oops or other strange effects. Keep all structures valid till the last user is gone. Signed-off-by: Benedikt Spranger --- drivers/uio/uio.c | 59 ++---