HomeFreeBSD

MFC r302151: posixshm: Fix lock leak when mac_posixshm_check_read rejects

Description

MFC r302151: posixshm: Fix lock leak when mac_posixshm_check_read rejects
read.

While reading the code, I noticed that shm_read() returns without unlocking
foffset and rangelock if mac_posixshm_check_read() rejects the read.

Details

Provenance
jillesAuthored on
Parents
rS302322: Remove racy assert. The thread which changes vnode usecount from 0 to 1
Branches
Unknown
Tags
Unknown