mirror of
https://github.com/schoebel/mars
synced 2025-02-26 01:20:29 +00:00
copy: safeguard start conditions
This commit is contained in:
parent
2d5b708ff6
commit
c9f1854f3c
@ -528,8 +528,10 @@ restart:
|
|||||||
/* This is the relgular starting state.
|
/* This is the relgular starting state.
|
||||||
* It must be zero, automatically entered via memset()
|
* It must be zero, automatically entered via memset()
|
||||||
*/
|
*/
|
||||||
if ((unsigned long)READ_ONCE(st->table[0]) |
|
if ((READ_ONCE(st->active[0]) |
|
||||||
(unsigned long)READ_ONCE(st->table[1])) {
|
READ_ONCE(st->active[1])) ||
|
||||||
|
((unsigned long)READ_ONCE(st->table[0]) |
|
||||||
|
(unsigned long)READ_ONCE(st->table[1]))) {
|
||||||
MARS_ERR("index %u not startable at pos=%lld\n",
|
MARS_ERR("index %u not startable at pos=%lld\n",
|
||||||
index, pos);
|
index, pos);
|
||||||
progress = -EPROTO;
|
progress = -EPROTO;
|
||||||
|
Loading…
Reference in New Issue
Block a user