]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
posixshm: Fix lock leak when mac_posixshm_check_read rejects read.
authorjilles <jilles@FreeBSD.org>
Thu, 23 Jun 2016 20:59:13 +0000 (20:59 +0000)
committerjilles <jilles@FreeBSD.org>
Thu, 23 Jun 2016 20:59:13 +0000 (20:59 +0000)
commit0c4cfbe0d1948b394b323eca8815a3970a65471d
treeac6a4f34df1ffbf9230348a27b546a12c26452e0
parentab14b434c175ecf71563899622d311668779e65c
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.

Reviewed by: kib, jhb, rwatson
Approved by: re (gjb)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6927
sys/kern/uipc_shm.c