Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d86b2b61 authored by Jarkko Sakkinen's avatar Jarkko Sakkinen Committed by Casey Schaufler
Browse files

Smack: fix: invalid length set for the result of /smack/access



Forgot to update simple_transaction_set() to take terminator
character into account.

Signed-off-by: default avatarJarkko Sakkinen <jarkko.j.sakkinen@gmail.com>
Signed-off-by: default avatarCasey Schaufler <cschaufler@cschaufler-intel.(none)>
parent 16014d87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1514,7 +1514,7 @@ static ssize_t smk_write_access(struct file *file, const char __user *buf,
	data[0] = res == 0 ? '1' : '0';
	data[1] = '\0';

	simple_transaction_set(file, 1);
	simple_transaction_set(file, 2);
	return SMK_LOADLEN;
}