bcachefs: ec: Ensure new stripe is closed in error path
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 Feb 2023 03:30:54 +0000 (22:30 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:55 +0000 (17:09 -0400)
commita64adedb8663ded044e535159b2e723a04396845
treed3c3fb699f705c3728e8a6b334f52542a77136e6
parentf3a65bb98b4612745cf2505734c78404344e2c9e
bcachefs: ec: Ensure new stripe is closed in error path

This fixes a use-after-free bug.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/ec.c