btrfs: send: handle unexpected data in header buffer in begin_cmd()
[ Upstream commit e80e3f732cf53c64b0d811e1581470d67f6c3228 ] Change BUG_ON to a proper error handling in the unlikely case of seeing data when the command is started. This is supposed to be reset when the command is finished (send_cmd, send_encoded_extent). Signed-off-by:David Sterba <dsterba@suse.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> (cherry picked from commit f0b54836bf2ff59b866a6db481f9ad46fa30b642) Signed-off-by:
Vegard Nossum <vegard.nossum@oracle.com>
Loading
Please register or sign in to comment