Repository navigation
Commit aacd5b4
crypto: skcipher - use crypto_grab_cipher() and simplify error paths
Make skcipher_alloc_instance_simple() use the new function
crypto_grab_cipher() to initialize its cipher spawn.
This is needed to make all spawns be initialized in a consistent way.
Also simplify the error handling by taking advantage of crypto_drop_*()
now accepting (as a no-op) spawns that haven't been initialized yet, and
by taking advantage of crypto_grab_*() now handling ERR_PTR() names.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent c282586 commit aacd5b4
2 files changed
Lines changed: 17 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
| 911 | + | |
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
| |||
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | 935 | | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
| 948 | + | |
| 949 | + | |
955 | 950 | | |
956 | 951 | | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
| 952 | + | |
| 953 | + | |
961 | 954 | | |
962 | 955 | | |
963 | | - | |
964 | | - | |
| 956 | + | |
| 957 | + | |
965 | 958 | | |
966 | 959 | | |
| 960 | + | |
967 | 961 | | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
| 962 | + | |
| 963 | + | |
972 | 964 | | |
973 | 965 | | |
| 966 | + | |
974 | 967 | | |
975 | 968 | | |
976 | 969 | | |
| |||
990 | 983 | | |
991 | 984 | | |
992 | 985 | | |
993 | | - | |
994 | | - | |
995 | | - | |
| 986 | + | |
996 | 987 | | |
997 | 988 | | |
998 | 989 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments