projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f05949
)
Require params for crypt_load & TCRYPT type.
author
Milan Broz
<gmazyland@gmail.com>
Sat, 8 Dec 2012 00:31:38 +0000
(
01:31
+0100)
committer
Milan Broz
<gmazyland@gmail.com>
Sat, 8 Dec 2012 00:31:38 +0000
(
01:31
+0100)
lib/setup.c
patch
|
blob
|
history
diff --git
a/lib/setup.c
b/lib/setup.c
index cf4d260b809939c11ef0963807bd48869ae08058..fd65e8fab16e5b1c02ada55a21350c67fcadd026 100644
(file)
--- a/
lib/setup.c
+++ b/
lib/setup.c
@@
-636,6
+636,9
@@
static int _crypt_load_tcrypt(struct crypt_device *cd, struct crypt_params_tcryp
{
int r;
+ if (!params)
+ return -EINVAL;
+
r = init_crypto(cd);
if (r < 0)
return r;