HomeFreeBSD

linuxkpi: Fix for use-after-free when tearing down character devices.

Description

linuxkpi: Fix for use-after-free when tearing down character devices.

Make sure we hold a reference on the character device for every opened file
to prevent the character device to be freed prematurely.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
slavashAuthored on
Parents
rS341517: linuxkpi: implement idr_is_empty() and ida_is_empty().
Branches
Unknown
Tags
Unknown