From: Zach Brown Date: Mon, 7 Oct 2013 21:43:02 +0000 (-0700) Subject: btrfs-progs: don't deref pipefd[-1] X-Git-Tag: upstream/4.16.1~3073 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2da6395959c454d1e98ff03b259ddc7e96b5861;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: don't deref pipefd[-1] commit 4782e8ebdb583dfa3615f7b38dee729d34f62ec1 accidentally replaced [0] with [-1]. Put it back. This was found by static analysis. Signed-off-by: Zach Brown Reviewed-by: Eric Sandeen Signed-off-by: David Sterba Signed-off-by: Chris Mason --- diff --git a/send-test.c b/send-test.c index 3775f5f..a37b7fd 100644 --- a/send-test.c +++ b/send-test.c @@ -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;