OSDN Git Service

EVM: unlock on error path in evm_read_xattrs()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Jun 2018 08:00:05 +0000 (11:00 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 1 Jun 2018 10:03:08 +0000 (06:03 -0400)
commitb5c90a7526fe39164c2204f0404ce8f8ff21e522
treeb1b82612e32e0d5a493b6cb1e604642627850723
parenta41d80acfa2764e9b1ce49aa303a263e609d91f7
EVM: unlock on error path in evm_read_xattrs()

We need to unlock before returning on this error path.

Fixes: fa516b66a1bf ("EVM: Allow runtime modification of the set of verified xattrs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/evm/evm_secfs.c