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 6ba906f commit c353014Copy full SHA for c353014
drivers/block/loop.c
@@ -1110,11 +1110,15 @@ loop_set_status(struct loop_device *lo, const struct loop_info64 *info)
1110
if (info->lo_encrypt_type) {
1111
unsigned int type = info->lo_encrypt_type;
1112
1113
- if (type >= MAX_LO_CRYPT)
1114
- return -EINVAL;
+ if (type >= MAX_LO_CRYPT) {
+ err = -EINVAL;
1115
+ goto exit;
1116
+ }
1117
xfer = xfer_funcs[type];
- if (xfer == NULL)
1118
+ if (xfer == NULL) {
1119
1120
1121
1122
} else
1123
xfer = NULL;
1124
0 commit comments