]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: send: handle unexpected data in header buffer in begin_cmd()
authorDavid Sterba <dsterba@suse.com>
Tue, 6 Feb 2024 21:47:13 +0000 (22:47 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:51 +0000 (16:24 +0100)
commite80e3f732cf53c64b0d811e1581470d67f6c3228
tree81ed11fc3b84ff0cec6218b787ae935b9a99fbe2
parent6fbc6f4ac1f4907da4fc674251527e7dc79ffbf6
btrfs: send: handle unexpected data in header buffer in begin_cmd()

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>
fs/btrfs/send.c