Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs: send: Ensure send_fd is writable
kernel_write() requires the caller to ensure that the file is writable. Let's do that directly after looking up the ->send_fd. (We don't need a separate bailout path because the "out" path already does fput() if ->send_filp is non-NULL.)
- Loading branch information