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

Commit 5bc4b6f3 authored by Wei Yongjun's avatar Wei Yongjun Committed by Alex Shi
Browse files

dm crypt: fix missing error code return from crypt_ctr error path



Fix to return a negative error code from crypt_ctr()'s optional
parameter processing error path.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
(cherry picked from commit 44c144f9c8e8fbd73ede2848da8253b3aae42ec2)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent a2c92743
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1816,6 +1816,7 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
		if (ret)
			goto bad;

		ret = -EINVAL;
		while (opt_params--) {
			opt_string = dm_shift_arg(&as);
			if (!opt_string) {