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

Commit 44c144f9 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mike Snitzer
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>
parent 0618764c
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) {