projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0618764
)
dm crypt: fix missing error code return from crypt_ctr error path
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Fri, 17 Apr 2015 02:00:50 +0000
(22:00 -0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Fri, 17 Apr 2015 02:00:50 +0000
(22:00 -0400)
Fix to return a negative error code from crypt_ctr()'s optional
parameter processing error path.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-crypt.c
b/drivers/md/dm-crypt.c
index 9b5e1eb0ffcf2abc5eca67df5d1de398bd8ed522..9eeea196328acc63c3220c309399abf014dfbb4b 100644
(file)
--- a/
drivers/md/dm-crypt.c
+++ b/
drivers/md/dm-crypt.c
@@
-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) {