We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9580b58 commit 123d306Copy full SHA for 123d306
drivers/block/loop.c
@@ -1121,11 +1121,15 @@ loop_set_status(struct loop_device *lo, const struct loop_info64 *info)
1121
if (info->lo_encrypt_type) {
1122
unsigned int type = info->lo_encrypt_type;
1123
1124
- if (type >= MAX_LO_CRYPT)
1125
- return -EINVAL;
+ if (type >= MAX_LO_CRYPT) {
+ err = -EINVAL;
1126
+ goto exit;
1127
+ }
1128
xfer = xfer_funcs[type];
- if (xfer == NULL)
1129
+ if (xfer == NULL) {
1130
1131
1132
1133
} else
1134
xfer = NULL;
1135
0 commit comments