HomeFreeBSD

Properly handle the case where the linux_cdev_handle_insert() function

Description

Properly handle the case where the linux_cdev_handle_insert() function
in the LinuxKPI returns NULL. This happens when the VM area's private
data handle already exists and could cause a so-called NULL pointer
dereferencing issue prior to this fix.

Found by: greg@unrelenting.technology
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS325766: Fix formatting of _umtx_op(2)
Branches
Unknown
Tags
Unknown