]> git.pond.sub.org Git - empserver/commit
Avoid seqno mismatch oops in recursive land unit supply hvy-metal-2.3
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 28 May 2008 20:30:36 +0000 (22:30 +0200)
committerMarkus Armbruster <armbru@pike.pond.sub.org>
Wed, 28 May 2008 20:33:36 +0000 (22:33 +0200)
commit080e8db899129467ff6025677dc9b180a5c90d63
tree87e173b003b3f9e249f13800910cf6b6a77b9760
parent2410535a052d1af76a65f52396a48632ef61e885
Avoid seqno mismatch oops in recursive land unit supply

Before s_commod() attempts to recursively supply a supply unit it
wants to use as supply source, it zaps the unit's load.  When
actually_doit is false, it later restores the old load by overwriting
the change with a saved copy of the unit.  That triggers a seqno
mismatch oops.

Avoid that by copying the new sequence number to the saved copy.
(cherry picked from commit aacd0fb754ef060af92bb08907c5cda196bf34e3)
src/lib/subs/supply.c