]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r302151: posixshm: Fix lock leak when mac_posixshm_check_read rejects
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jul 2016 11:45:54 +0000 (11:45 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jul 2016 11:45:54 +0000 (11:45 +0000)
commit5142a7d1b732a9d7628b287e0b2f7cbaaba834dd
treedb206082a407fa5aa6a9b9b130bf5d4e35f12c7c
parent4d1d0a462329fb43bcf72be302c1928d8122b221
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@302323 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/uipc_shm.c