From patchwork Thu Jan 17 15:09:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvin Schnell X-Patchwork-Id: 1996931 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 59B30DF2E1 for ; Thu, 17 Jan 2013 15:09:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756530Ab3AQPJf (ORCPT ); Thu, 17 Jan 2013 10:09:35 -0500 Received: from cantor2.suse.de ([195.135.220.15]:53364 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755593Ab3AQPJe (ORCPT ); Thu, 17 Jan 2013 10:09:34 -0500 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 415C0A5077; Thu, 17 Jan 2013 16:09:33 +0100 (CET) Date: Thu, 17 Jan 2013 16:09:32 +0100 From: Arvin Schnell To: chris.mason@fusionio.com, linux-btrfs@vger.kernel.org Subject: [PATCH] trivial patch for btrfs-progs Message-ID: <20130117150932.GA11610@suse.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Hi, please find attached a trivial patch for btrfs-progs. Likely not strictly needed but I noticed valgrind complaining about uninitialised memory in the ioctl call. Regards, Arvin diff --git a/cmds-send.c b/cmds-send.c index 9b47e70..aa8c5a3 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -271,6 +271,7 @@ static int do_send(struct btrfs_send *send, u64 root_id, u64 parent_root) goto out; } + memset(&io_send, 0, sizeof(io_send)); io_send.send_fd = pipefd[1]; send->send_fd = pipefd[0];