]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[fc] Hold ULP's peer reference while ULP exists
authorMichael Brown <mcb30@ipxe.org>
Fri, 5 Nov 2010 23:13:22 +0000 (23:13 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 8 Nov 2010 03:35:36 +0000 (03:35 +0000)
commit41231fda9c6989c2e1fcc41abef307531926a804
tree032a3ac48ca092e8dce106435599013d5b0a6940
parent0cd185e7341a62e1a166d277ef96f255827b8032
[fc] Hold ULP's peer reference while ULP exists

Allow fc_ulp_decrement() to guarantee to fc_peer_decrement() that the
peer reference remains valid for the duration of the call, by ensuring
that ulp->peer remains valid while ulp is valid.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/fc.c