mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
Prevent destruction of a uio_device while user space apps hold open file descriptors to that device. Further, access to the 'info' member of the struct uio_device is protected by spinlock. This is to ensure stale pointers to data not under control of the UIO subsystem are not dereferenced. Signed-off-by: Hamish Martin <[email protected]> Reviewed-by: Chris Packham <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>