net: Fix double-free snoop bug
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 1 Feb 2017 21:26:14 +0000 (16:26 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 1 Feb 2017 21:26:14 +0000 (16:26 -0500)
commit3e2947a5a0fe1f131085dcbfb3ae8a2e8d5b2ef7
tree93cfbfb048b47637b45e300a8239ffeae1027f98
parent55ff62356fec036219d6f59b619e0b39fabc9d04
net: Fix double-free snoop bug

When the snoopy queue overflows, qpass() returns failure.  We had been
freeing the block in that case.  However, qpass() is actually the one
that frees the block.  All we should do is take note of its failure.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/ipifc.c