mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-16 08:44:31 +08:00
btrfs-progs: don't deref pipefd[-1]
commit 4782e8ebdb
accidentally replaced
[0] with [-1]. Put it back. This was found by static analysis.
Signed-off-by: Zach Brown <zab@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
7dff2d3a1f
commit
e2da639595
@ -354,7 +354,7 @@ static void *process_thread(void *arg_)
|
||||
int ret;
|
||||
|
||||
while (1) {
|
||||
ret = btrfs_read_and_process_send_stream(pipefd[-1],
|
||||
ret = btrfs_read_and_process_send_stream(pipefd[0],
|
||||
&send_ops_print, arg_, 0);
|
||||
if (ret)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user