setsector() and setres() continue after check_sect_ok() fails.
Clobbers the updates that made check_sect_ok() fail, triggering a
seqno mismatch oops.
Commit
04a332a8 (v4.3.27) claimed to fix this, but actually only
suppressed the generation oops.
amt = 100;
if (amt < 0)
amt = 0;
- check_sect_ok(§);
+ if (!check_sect_ok(§))
+ return RET_FAIL;
switch (char0) {
case 'i':
if (sect.sct_own != 0)
if (!p || !*p)
return RET_SYN;
amt = atoi(p);
- check_sect_ok(§);
+ if (!check_sect_ok(§))
+ return RET_FAIL;
switch (char0) {
case 'i':
current = sect.sct_min;